src/Entity/LeaveMCRecord.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Symfony\Component\Serializer\Annotation\Groups;
  4. use App\Repository\LeaveMCRecordRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassLeaveMCRecordRepository::class)]
  7. class LeaveMCRecord
  8. {
  9.     #[Groups(['LogService'])]
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column(type'integer')]
  13.     private $id;
  14.     #[Groups(['LogService'])]
  15.     #[ORM\ManyToOne(targetEntityUser::class, inversedBy'leaveMCRecords')]
  16.     #[ORM\JoinColumn(nullablefalse)]
  17.     private $user;
  18.     #[Groups(['LogService'])]
  19.     #[ORM\Column(type'datetime')]
  20.     private $startDate;
  21.     #[Groups(['LogService'])]
  22.     #[ORM\Column(type'datetime')]
  23.     private $endDate;
  24.     #[Groups(['LogService'])]
  25.     #[ORM\Column(type'integer')]
  26.     private $days;
  27.     #[Groups(['LogService'])]
  28.     #[ORM\Column(type'string'length255nullabletrue)]
  29.     private $fileUpload;
  30.     #[Groups(['LogService'])]
  31.     #[ORM\Column(type'text'nullabletrue)]
  32.     private $comment;
  33.     #[ORM\Column(type'datetime')]
  34.     private $createdAt;
  35.     #[ORM\Column(type'string'length128)]
  36.     private $createdBy;
  37.     #[ORM\Column(type'datetime'nullabletrue)]
  38.     private $updatedAt;
  39.     #[ORM\Column(type'string'length128nullabletrue)]
  40.     private $updatedBy;
  41.     #[Groups(['LogService'])]
  42.     #[ORM\Column(type'boolean'nullabletrue)]
  43.     private $isJustified;
  44.     #[ORM\Column(type'integer'nullabletrue)]
  45.     private $reviewedBy;
  46.     #[Groups(['LogService'])]
  47.     #[ORM\Column(type'text'nullabletrue)]
  48.     private $note;
  49.     public function getId(): ?int
  50.     {
  51.         return $this->id;
  52.     }
  53.     public function getUser(): ?User
  54.     {
  55.         return $this->user;
  56.     }
  57.     public function setUser(?User $user): self
  58.     {
  59.         $this->user $user;
  60.         return $this;
  61.     }
  62.     public function getStartDate(): ?\DateTime
  63.     {
  64.         return $this->startDate;
  65.     }
  66.     public function setStartDate(\DateTime $startDate): self
  67.     {
  68.         $this->startDate $startDate;
  69.         return $this;
  70.     }
  71.     public function getEndDate(): ?\DateTime
  72.     {
  73.         return $this->endDate;
  74.     }
  75.     public function setEndDate(\DateTime $endDate): self
  76.     {
  77.         $this->endDate $endDate;
  78.         return $this;
  79.     }
  80.     public function getDays(): ?int
  81.     {
  82.         return $this->days;
  83.     }
  84.     public function setDays(int $days): self
  85.     {
  86.         $this->days $days;
  87.         return $this;
  88.     }
  89.     public function getFileUpload(): ?string
  90.     {
  91.         return $this->fileUpload;
  92.     }
  93.     public function setFileUpload(string $fileUpload): self
  94.     {
  95.         $this->fileUpload $fileUpload;
  96.         return $this;
  97.     }
  98.     public function getComment(): ?string
  99.     {
  100.         return $this->comment;
  101.     }
  102.     public function setComment(?string $comment): self
  103.     {
  104.         $this->comment $comment;
  105.         return $this;
  106.     }
  107.     public function getCreatedAt(): ?\DateTimeInterface
  108.     {
  109.         return $this->createdAt;
  110.     }
  111.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  112.     {
  113.         $this->createdAt $createdAt;
  114.         return $this;
  115.     }
  116.     public function getCreatedBy(): ?string
  117.     {
  118.         return $this->createdBy;
  119.     }
  120.     public function setCreatedBy(string $createdBy): self
  121.     {
  122.         $this->createdBy $createdBy;
  123.         return $this;
  124.     }
  125.     public function getUpdatedAt(): ?\DateTimeInterface
  126.     {
  127.         return $this->updatedAt;
  128.     }
  129.     public function setUpdatedAt(?\DateTimeInterface $updatedAt): self
  130.     {
  131.         $this->updatedAt $updatedAt;
  132.         return $this;
  133.     }
  134.     public function getUpdatedBy(): ?string
  135.     {
  136.         return $this->updatedBy;
  137.     }
  138.     public function setUpdatedBy(?string $updatedBy): self
  139.     {
  140.         $this->updatedBy $updatedBy;
  141.         return $this;
  142.     }
  143.     public function getIsJustified(): ?bool
  144.     {
  145.         return $this->isJustified;
  146.     }
  147.     public function setIsJustified(bool $isJustified): self
  148.     {
  149.         $this->isJustified $isJustified;
  150.         return $this;
  151.     }
  152.     public function getReviewedBy(): ?int
  153.     {
  154.         return $this->reviewedBy;
  155.     }
  156.     public function setReviewedBy(?int $reviewedBy): self
  157.     {
  158.         $this->reviewedBy $reviewedBy;
  159.         return $this;
  160.     }
  161.     public function getNote(): ?string
  162.     {
  163.         return $this->note;
  164.     }
  165.     public function setNote(?string $note): self
  166.     {
  167.         $this->note $note;
  168.         return $this;
  169.     }
  170. }