src/Entity/FlexiWorkArrangementRequest.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\FlexiWorkArrangementRequestRepository;
  4. use Symfony\Component\Serializer\Annotation\Groups;
  5. use Doctrine\Common\Collections\ArrayCollection;
  6. use Doctrine\Common\Collections\Collection;
  7. use Doctrine\ORM\Mapping as ORM;
  8. #[ORM\Entity(repositoryClassFlexiWorkArrangementRequestRepository::class)]
  9. class FlexiWorkArrangementRequest
  10. {
  11.     #[Groups(['LogService'])]
  12.     #[ORM\Id]
  13.     #[ORM\GeneratedValue]
  14.     #[ORM\Column(type'integer')]
  15.     private $id;
  16.     #[Groups(['LogService'])]
  17.     #[ORM\Column(type'string'length64)]
  18.     private $title;
  19.     #[Groups(['LogService'])]
  20.     #[ORM\Column(type'datetime')]
  21.     private $submittedAt;
  22.     #[Groups(['LogService'])]
  23.     #[ORM\Column(type'datetime'nullabletrue)]
  24.     private $approvedAt;
  25.     #[Groups(['LogService'])]
  26.     #[ORM\Column(type'datetime'nullabletrue)]
  27.     private $activeAt;
  28.     #[Groups(['LogService'])]
  29.     #[ORM\ManyToOne(targetEntityUser::class, inversedBy'flexiWorkArrangementRequest')]
  30.     private $user;
  31.     #[Groups(['LogService'])]
  32.     #[ORM\ManyToOne(targetEntityUser::class)]
  33.     private $approvedBy;
  34.     #[Groups(['LogService'])]
  35.     #[ORM\Column(type'text'nullabletrue)]
  36.     private $originalFile;
  37.     #[Groups(['LogService'])]
  38.     #[ORM\Column(type'text'nullabletrue)]
  39.     private $signedFile;
  40.     public function getId(): ?int
  41.     {
  42.         return $this->id;
  43.     }
  44.     public function getTitle(): ?string
  45.     {
  46.         return $this->title;
  47.     }
  48.     public function setTitle(string $title): self
  49.     {
  50.         $this->title $title;
  51.         return $this;
  52.     }
  53.     public function getSubmittedAt(): ?\DateTimeInterface
  54.     {
  55.         return $this->submittedAt;
  56.     }
  57.     public function setSubmittedAt(\DateTimeInterface $submittedAt): self
  58.     {
  59.         $this->submittedAt $submittedAt;
  60.         return $this;
  61.     }
  62.     public function getApprovedAt(): ?\DateTimeInterface
  63.     {
  64.         return $this->approvedAt;
  65.     }
  66.     public function setApprovedAt(?\DateTimeInterface $approvedAt): self
  67.     {
  68.         $this->approvedAt $approvedAt;
  69.         return $this;
  70.     }
  71.     public function getActiveAt(): ?\DateTimeInterface
  72.     {
  73.         return $this->activeAt;
  74.     }
  75.     public function setActiveAt(?\DateTimeInterface $activeAt): self
  76.     {
  77.         $this->activeAt $activeAt;
  78.         return $this;
  79.     }
  80.     public function getUser(): ?User
  81.     {
  82.         return $this->user;
  83.     }
  84.     public function setUser(?User $user): self
  85.     {
  86.         $this->user $user;
  87.         return $this;
  88.     }
  89.     public function getApprovedBy(): ?User
  90.     {
  91.         return $this->approvedBy;
  92.     }
  93.     public function setApprovedBy(?User $approvedBy): self
  94.     {
  95.         $this->approvedBy $approvedBy;
  96.         return $this;
  97.     }
  98.     public function getOriginalFile(): ?string
  99.     {
  100.         return $this->originalFile;
  101.     }
  102.     public function setOriginalFile(?string $originalFile): self
  103.     {
  104.         $this->originalFile $originalFile;
  105.         return $this;
  106.     }
  107.     public function getSignedFile(): ?string
  108.     {
  109.         return $this->signedFile;
  110.     }
  111.     public function setSignedFile(?string $signedFile): self
  112.     {
  113.         $this->signedFile $signedFile;
  114.         return $this;
  115.     }
  116. }