src/Entity/UserDashboard.php line 9

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\UserDashboardRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassUserDashboardRepository::class)]
  6. class UserDashboard
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\OneToOne(mappedBy'dashboard'targetEntityUser::class)]
  13.     protected User $user;
  14.     #[ORM\Column]
  15.     private ?bool $franchisenehmer null;
  16.     #[ORM\Column]
  17.     private ?bool $studios null;
  18.     #[ORM\Column]
  19.     private ?bool $leistungen null;
  20.     #[ORM\Column]
  21.     private ?bool $kurse null;
  22.     #[ORM\Column]
  23.     private ?bool $news null;
  24.     #[ORM\Column]
  25.     private ?bool $custom null;
  26.     #[ORM\Column]
  27.     private ?bool $emailTemplate null;
  28.     public function __construct()
  29.     {
  30.         $this->franchisenehmer false;
  31.         $this->studios false;
  32.         $this->leistungen false;
  33.         $this->kurse false;
  34.         $this->news false;
  35.         $this->custom false;
  36.         $this->emailTemplate false;
  37.     }
  38.     #[ORM\Column]
  39.     private ?bool $dokumente null;
  40.     public function getId(): ?int
  41.     {
  42.         return $this->id;
  43.     }
  44.     public function isFranchisenehmer(): ?bool
  45.     {
  46.         return $this->franchisenehmer;
  47.     }
  48.     public function setFranchisenehmer(bool $franchisenehmer): self
  49.     {
  50.         $this->franchisenehmer $franchisenehmer;
  51.         return $this;
  52.     }
  53.     public function isStudios(): ?bool
  54.     {
  55.         return $this->studios;
  56.     }
  57.     public function setStudios(bool $studios): self
  58.     {
  59.         $this->studios $studios;
  60.         return $this;
  61.     }
  62.     public function isLeistungen(): ?bool
  63.     {
  64.         return $this->leistungen;
  65.     }
  66.     public function setLeistungen(bool $leistungen): self
  67.     {
  68.         $this->leistungen $leistungen;
  69.         return $this;
  70.     }
  71.     public function isKurse(): ?bool
  72.     {
  73.         return $this->kurse;
  74.     }
  75.     public function setKurse(bool $kurse): self
  76.     {
  77.         $this->kurse $kurse;
  78.         return $this;
  79.     }
  80.     public function isNews(): ?bool
  81.     {
  82.         return $this->news;
  83.     }
  84.     public function setNews(bool $news): self
  85.     {
  86.         $this->news $news;
  87.         return $this;
  88.     }
  89.     public function isCustom(): ?bool
  90.     {
  91.         return $this->custom;
  92.     }
  93.     public function setCustom(bool $custom): self
  94.     {
  95.         $this->custom $custom;
  96.         return $this;
  97.     }
  98.     public function isEmailTemplate(): ?bool
  99.     {
  100.         return $this->emailTemplate;
  101.     }
  102.     public function setEmailTemplate(bool $emailTemplate): self
  103.     {
  104.         $this->emailTemplate $emailTemplate;
  105.         return $this;
  106.     }
  107.     public function isDokumente(): ?bool
  108.     {
  109.         return $this->dokumente;
  110.     }
  111.     public function setDokumente(bool $dokumente): self
  112.     {
  113.         $this->dokumente $dokumente;
  114.         return $this;
  115.     }
  116.     public function getUser(): ?User
  117.     {
  118.         return $this->user;
  119.     }
  120.     public function setUser(?User $user): self
  121.     {
  122.         // unset the owning side of the relation if necessary
  123.         if ($user === null && $this->user !== null) {
  124.             $this->user->setDashboard(null);
  125.         }
  126.         // set the owning side of the relation if necessary
  127.         if ($user !== null && $user->getDashboard() !== $this) {
  128.             $user->setDashboard($this);
  129.         }
  130.         $this->user $user;
  131.         return $this;
  132.     }
  133. }