src/Entity/CRM/Room.php line 9

  1. <?php
  2. namespace App\Entity\CRM;
  3. use App\Repository\RoomRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassRoomRepository::class)]
  6. class Room
  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\ManyToOne(inversedBy'rooms')]
  15.     #[ORM\JoinColumn(nullablefalse)]
  16.     private ?Branch $branch null;
  17.     #[ORM\Column]
  18.     private ?bool $collision null;
  19.     #[ORM\Column(length10)]
  20.     private ?string $firstHour null;
  21.     #[ORM\Column(length10)]
  22.     private ?string $lastHour null;
  23.     #[ORM\Column(length10)]
  24.     private ?string $defaultView null;
  25.     #[ORM\Column]
  26.     private ?bool $car null;
  27.     #[ORM\Column]
  28.     private ?bool $availableForAllBranches null;
  29.     #[ORM\Column]
  30.     private ?bool $forImplementers null;
  31.     #[ORM\Column]
  32.     private ?bool $dateTimeHidden null;
  33.     #[ORM\Column]
  34.     private array $availableForRoles = [];
  35.     #[ORM\Column]
  36.     private ?bool $timetable null;
  37.     #[ORM\Column]
  38.     private ?bool $onlyAvailableForRoles null;
  39.     public function getId(): ?int
  40.     {
  41.         return $this->id;
  42.     }
  43.     public function __toString(): string
  44.     {
  45.         return $this->name;
  46.     }
  47.     /**
  48.      * @return string|null
  49.      */
  50.     public function getName(): ?string
  51.     {
  52.         return $this->name;
  53.     }
  54.     public function setName(string $name): static
  55.     {
  56.         $this->name $name;
  57.         return $this;
  58.     }
  59.     public function getBranch(): ?Branch
  60.     {
  61.         return $this->branch;
  62.     }
  63.     public function setBranch(?Branch $branch): static
  64.     {
  65.         $this->branch $branch;
  66.         return $this;
  67.     }
  68.     public function isCollision(): ?bool
  69.     {
  70.         return $this->collision;
  71.     }
  72.     public function setCollision(bool $collision): static
  73.     {
  74.         $this->collision $collision;
  75.         return $this;
  76.     }
  77.     public function getFirstHour(): ?string
  78.     {
  79.         return $this->firstHour;
  80.     }
  81.     public function setFirstHour(string $firstHour): static
  82.     {
  83.         $this->firstHour $firstHour;
  84.         return $this;
  85.     }
  86.     public function getLastHour(): ?string
  87.     {
  88.         return $this->lastHour;
  89.     }
  90.     public function setLastHour(string $lastHour): static
  91.     {
  92.         $this->lastHour $lastHour;
  93.         return $this;
  94.     }
  95.     public function getDefaultView(): ?string
  96.     {
  97.         return $this->defaultView;
  98.     }
  99.     public function setDefaultView(string $defaultView): static
  100.     {
  101.         $this->defaultView $defaultView;
  102.         return $this;
  103.     }
  104.     public function isCar(): ?bool
  105.     {
  106.         return $this->car;
  107.     }
  108.     public function setCar(bool $car): static
  109.     {
  110.         $this->car $car;
  111.         return $this;
  112.     }
  113.     public function isAvailableForAllBranches(): ?bool
  114.     {
  115.         return $this->availableForAllBranches;
  116.     }
  117.     public function setAvailableForAllBranches(bool $availableForAllBranches): static
  118.     {
  119.         $this->availableForAllBranches $availableForAllBranches;
  120.         return $this;
  121.     }
  122.     public function isForImplementers(): ?bool
  123.     {
  124.         return $this->forImplementers;
  125.     }
  126.     public function setForImplementers(bool $forImplementers): static
  127.     {
  128.         $this->forImplementers $forImplementers;
  129.         return $this;
  130.     }
  131.     public function isDateTimeHidden(): ?bool
  132.     {
  133.         return $this->dateTimeHidden;
  134.     }
  135.     public function setDateTimeHidden(bool $dateTimeHidden): static
  136.     {
  137.         $this->dateTimeHidden $dateTimeHidden;
  138.         return $this;
  139.     }
  140.     public function getAvailableForRoles(): array
  141.     {
  142.         return $this->availableForRoles;
  143.     }
  144.     public function setAvailableForRoles(?array $availableForRoles): static
  145.     {
  146.         $this->availableForRoles $availableForRoles;
  147.         return $this;
  148.     }
  149.     public function isTimetable(): ?bool
  150.     {
  151.         return $this->timetable;
  152.     }
  153.     public function setTimetable(bool $timetable): static
  154.     {
  155.         $this->timetable $timetable;
  156.         return $this;
  157.     }
  158.     public function isOnlyAvailableForRoles(): ?bool
  159.     {
  160.         return $this->onlyAvailableForRoles;
  161.     }
  162.     public function setOnlyAvailableForRoles(bool $onlyAvailableForRoles): static
  163.     {
  164.         $this->onlyAvailableForRoles $onlyAvailableForRoles;
  165.         return $this;
  166.     }
  167. }