src/Entity/FlexiWorkArrangementOption.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Symfony\Component\Serializer\Annotation\Groups;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use App\Repository\FlexiWorkArrangementOptionRepository;
  6. #[ORM\Entity(repositoryClassFlexiWorkArrangementOptionRepository::class)]
  7. class FlexiWorkArrangementOption
  8. {
  9.     #[Groups(['LogService'])]
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column(type'integer')]
  13.     private $id;
  14.     #[Groups(['LogService'])]
  15.     #[ORM\OneToOne(targetEntityUser::class, inversedBy'flexiWorkArrangementOption'cascade: ['persist''remove'])]
  16.     private $user;
  17.     #[Groups(['LogService'])]
  18.     #[ORM\Column(type'boolean')]
  19.     private $fwh false;
  20.     #[Groups(['LogService'])]
  21.     #[ORM\Column(type'boolean')]
  22.     private $fp false;
  23.     #[Groups(['LogService'])]
  24.     #[ORM\Column(type'boolean')]
  25.     private $pt false;
  26.     #[Groups(['LogService'])]
  27.     #[ORM\Column(type'datetime')]
  28.     private $updatedAt;
  29.     public function getId(): ?int
  30.     {
  31.         return $this->id;
  32.     }
  33.     public function getUser(): ?User
  34.     {
  35.         return $this->user;
  36.     }
  37.     public function setUser(?User $user): self
  38.     {
  39.         $this->user $user;
  40.         return $this;
  41.     }
  42.     public function getFWH(): ?bool
  43.     {
  44.         return $this->fwh;
  45.     }
  46.     public function setFWH(bool $fwh): self
  47.     {
  48.         $this->fwh $fwh;
  49.         return $this;
  50.     }
  51.     public function getFP(): ?bool
  52.     {
  53.         return $this->fp;
  54.     }
  55.     public function setFP(bool $fp): self
  56.     {
  57.         $this->fp $fp;
  58.         return $this;
  59.     }
  60.     public function getPT(): ?bool
  61.     {
  62.         return $this->pt;
  63.     }
  64.     public function setPT(bool $pt): self
  65.     {
  66.         $this->pt $pt;
  67.         return $this;
  68.     }
  69.     public function getUpdatedAt(): ?\DateTimeInterface
  70.     {
  71.         return $this->updatedAt;
  72.     }
  73.     public function setUpdatedAt(\DateTimeInterface $updatedAt): self
  74.     {
  75.         $this->updatedAt $updatedAt;
  76.         return $this;
  77.     }
  78. }