src/Entity/StaffLeaveAllotment.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\StaffLeaveAllotmentRepository;
  4. use Gedmo\Mapping\Annotation as Gedmo;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Symfony\Component\Validator\Constraints as Assert;
  7. #[ORM\Entity(repositoryClassStaffLeaveAllotmentRepository::class), ORM\Table(name'staff_leave_allotments')]
  8. class StaffLeaveAllotment
  9. {
  10.     #[ORM\IdORM\GeneratedValueORM\Column(type'integer')]
  11.     private $id;
  12.     #[ORM\Column(type'integer'), Assert\NotBlank]
  13.     private $leaveYear;
  14.     #[ORM\Column(type'float'), Assert\NotBlank]
  15.     private $elNum;
  16.     #[ORM\Column(type'string'length100)]
  17.     private $elDoc;
  18.     #[ORM\Column(type'float'), Assert\NotBlank]
  19.     private $mlNum;
  20.     #[ORM\Column(type'string'length100)]
  21.     private $mlDoc;
  22.     #[ORM\Column(type'float'), Assert\NotBlank]
  23.     private $hplNum;
  24.     #[ORM\Column(type'string'length100)]
  25.     private $hplDoc;
  26.     #[ORM\Column(type'float'), Assert\NotBlank]
  27.     private $lwpNum;
  28.     #[ORM\Column(type'string'length100)]
  29.     private $lwpDoc;
  30.     #[ORM\Column(type'float'), Assert\NotBlank]
  31.     private $clNum;
  32.     #[ORM\ManyToOne(targetEntityStaffProfile::class, inversedBy'leaveAllotments'), ORM\JoinColumn(nullablefalse)]
  33.     private $profile;
  34.     #[Gedmo\Timestampable(on'create'), ORM\Column(type'datetime')]
  35.     private $createdAt;
  36.     #[Gedmo\Timestampable(on'update'), ORM\Column(type'datetime')]
  37.     private $updatedAt;
  38.     public function getId(): ?int
  39.     {
  40.         return $this->id;
  41.     }
  42.     public function getLeaveYear(): ?int
  43.     {
  44.         return $this->leaveYear;
  45.     }
  46.     public function setLeaveYear(int $leaveYear): self
  47.     {
  48.         $this->leaveYear $leaveYear;
  49.         return $this;
  50.     }
  51.     public function getElNum(): ?float
  52.     {
  53.         return $this->elNum;
  54.     }
  55.     public function setElNum(float $elNum): self
  56.     {
  57.         $this->elNum $elNum;
  58.         return $this;
  59.     }
  60.     public function getElDoc(): ?string
  61.     {
  62.         return $this->elDoc;
  63.     }
  64.     public function setElDoc(string $elDoc): self
  65.     {
  66.         $this->elDoc strip_tags($elDoc);
  67.         return $this;
  68.     }
  69.     public function getMlNum(): ?float
  70.     {
  71.         return $this->mlNum;
  72.     }
  73.     public function setMlNum(float $mlNum): self
  74.     {
  75.         $this->mlNum $mlNum;
  76.         return $this;
  77.     }
  78.     public function getMlDoc(): ?string
  79.     {
  80.         return $this->mlDoc;
  81.     }
  82.     public function setMlDoc(string $mlDoc): self
  83.     {
  84.         $this->mlDoc strip_tags($mlDoc);
  85.         return $this;
  86.     }
  87.     public function getHplNum(): ?float
  88.     {
  89.         return $this->hplNum;
  90.     }
  91.     public function setHplNum(float $hplNum): self
  92.     {
  93.         $this->hplNum $hplNum;
  94.         return $this;
  95.     }
  96.     public function getHplDoc(): ?string
  97.     {
  98.         return $this->hplDoc;
  99.     }
  100.     public function setHplDoc(string $hplDoc): self
  101.     {
  102.         $this->hplDoc strip_tags($hplDoc);
  103.         return $this;
  104.     }
  105.     public function getLwpNum(): ?float
  106.     {
  107.         return $this->lwpNum;
  108.     }
  109.     public function setLwpNum(float $lwpNum): self
  110.     {
  111.         $this->lwpNum $lwpNum;
  112.         return $this;
  113.     }
  114.     public function getLwpDoc(): ?string
  115.     {
  116.         return $this->lwpDoc;
  117.     }
  118.     public function setLwpDoc(string $lwpDoc): self
  119.     {
  120.         $this->lwpDoc strip_tags($lwpDoc);
  121.         return $this;
  122.     }
  123.     public function getClNum(): ?float
  124.     {
  125.         return $this->clNum;
  126.     }
  127.     public function setClNum(float $clNum): self
  128.     {
  129.         $this->clNum strip_tags($clNum);
  130.         return $this;
  131.     }
  132.     public function getProfile(): ?StaffProfile
  133.     {
  134.         return $this->profile;
  135.     }
  136.     public function setProfile(?StaffProfile $profile): self
  137.     {
  138.         $this->profile $profile;
  139.         return $this;
  140.     }
  141.     public function getCreatedAt(): ?\DateTimeInterface
  142.     {
  143.         return $this->createdAt;
  144.     }
  145.     public function getUpdatedAt(): ?\DateTimeInterface
  146.     {
  147.         return $this->updatedAt;
  148.     }
  149. }