src/Entity/OfficeAdditionalLeave.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\OfficeAdditionalLeaveRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassOfficeAdditionalLeaveRepository::class)]
  8. class OfficeAdditionalLeave
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column(type'integer')]
  13.     private $id;
  14.     #[ORM\Column(type'string'length255nullabletrue)]
  15.     private $title;
  16.     #[ORM\Column(type'string'length128nullabletrue)]
  17.     private $days;
  18.      #[ORM\Column(type'string'length255nullabletrue)]
  19.     private $description;
  20.     
  21.     #[ORM\Column(type'boolean'nullabletrue)]
  22.     private $isActive;
  23.     #[ORM\ManyToOne(targetEntityOfficeLeave::class, inversedBy'officeAdditionalLeaves')]
  24.     private $officeLeave;
  25.     public function getId(): ?int
  26.     {
  27.         return $this->id;
  28.     }
  29.     public function getTitle(): ?string
  30.     {
  31.         return $this->title;
  32.     }
  33.     public function setTitle(?string $title): self
  34.     {
  35.         $this->title $title;
  36.         return $this;
  37.     }
  38.     public function getDays(): ?string
  39.     {
  40.         return $this->days;
  41.     }
  42.     public function setDays(?string $days): self
  43.     {
  44.         $this->days $days;
  45.         return $this;
  46.     }
  47.     public function getDescription(): ?string
  48.     {
  49.         return $this->title;
  50.     }
  51.     public function setDescription(?string $title): self
  52.     {
  53.         $this->title $title;
  54.         return $this;
  55.     }
  56.     public function getIsActive(): ?bool
  57.     {
  58.         return $this->isActive;
  59.     }
  60.     public function setIsActive(?bool $isActive): self
  61.     {
  62.         $this->isActive $isActive;
  63.         return $this;
  64.     }
  65.     public function getOfficeLeave(): ?OfficeLeave
  66.     {
  67.         return $this->officeLeave;
  68.     }
  69.     public function setOfficeLeave(?OfficeLeave $officeLeave): self
  70.     {
  71.         $this->officeLeave $officeLeave;
  72.         return $this;
  73.     }
  74. }