src/Entity/CRM/HourChangeReason.php line 9

  1. <?php
  2. namespace App\Entity\CRM;
  3. use App\Repository\HourChangeReasonRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassHourChangeReasonRepository::class)]
  6. class HourChangeReason
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\Column(length255)]
  13.     private ?string $name null;
  14.     #[ORM\Column]
  15.     private ?bool $isActive null;
  16.     #[ORM\Column]
  17.     private ?bool $forStart null;
  18.     #[ORM\Column]
  19.     private ?bool $forEnd null;
  20.     #[ORM\Column]
  21.     private ?bool $admin null;
  22.     #[ORM\Column]
  23.     private ?bool $consultant null;
  24.     #[ORM\Column]
  25.     private ?bool $isVacation null;
  26.     public function __construct()
  27.     {
  28.         return $this->name;
  29.     }
  30.     public function __toString(): string
  31.     {
  32.         return $this->name;
  33.     }
  34.     public function getId(): ?int
  35.     {
  36.         return $this->id;
  37.     }
  38.     public function getName(): ?string
  39.     {
  40.         return $this->name;
  41.     }
  42.     public function setName(string $name): static
  43.     {
  44.         $this->name $name;
  45.         return $this;
  46.     }
  47.     public function isIsActive(): ?bool
  48.     {
  49.         return $this->isActive;
  50.     }
  51.     public function setIsActive(bool $isActive): static
  52.     {
  53.         $this->isActive $isActive;
  54.         return $this;
  55.     }
  56.     public function isForStart(): ?bool
  57.     {
  58.         return $this->forStart;
  59.     }
  60.     public function setForStart(bool $forStart): static
  61.     {
  62.         $this->forStart $forStart;
  63.         return $this;
  64.     }
  65.     public function isForEnd(): ?bool
  66.     {
  67.         return $this->forEnd;
  68.     }
  69.     public function setForEnd(bool $forEnd): static
  70.     {
  71.         $this->forEnd $forEnd;
  72.         return $this;
  73.     }
  74.     public function isAdmin(): ?bool
  75.     {
  76.         return $this->admin;
  77.     }
  78.     public function setAdmin(bool $admin): static
  79.     {
  80.         $this->admin $admin;
  81.         return $this;
  82.     }
  83.     public function isConsultant(): ?bool
  84.     {
  85.         return $this->consultant;
  86.     }
  87.     public function setConsultant(bool $consultant): static
  88.     {
  89.         $this->consultant $consultant;
  90.         return $this;
  91.     }
  92.     public function isVacation(): ?bool
  93.     {
  94.         return $this->isVacation;
  95.     }
  96.     public function setIsVacation(bool $isVacation): static
  97.     {
  98.         $this->isVacation $isVacation;
  99.         return $this;
  100.     }
  101. }