src/Entity/CRM/AbsenceReason.php line 9

  1. <?php
  2. namespace App\Entity\CRM;
  3. use App\Repository\AbsenceReasonRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassAbsenceReasonRepository::class)]
  6. class AbsenceReason
  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.     public function __toString(): string
  17.     {
  18.         return  $this->name;
  19.     }
  20.     public function __construct()
  21.     {
  22.         return $this->name;
  23.     }
  24.     public function getId(): ?int
  25.     {
  26.         return $this->id;
  27.     }
  28.     public function getName(): ?string
  29.     {
  30.         return $this->name;
  31.     }
  32.     public function setName(string $name): static
  33.     {
  34.         $this->name $name;
  35.         return $this;
  36.     }
  37.     public function isIsActive(): ?bool
  38.     {
  39.         return $this->isActive;
  40.     }
  41.     public function setIsActive(bool $isActive): static
  42.     {
  43.         $this->isActive $isActive;
  44.         return $this;
  45.     }
  46. }