src/Flexy/ShopBundle/Entity/Order/UnavailableRoom.php line 10

  1. <?php
  2. namespace App\Flexy\ShopBundle\Entity\Order;
  3. use App\Flexy\ShopBundle\Repository\Order\UnavailableRoomRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassUnavailableRoomRepository::class)]
  7. class UnavailableRoom
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(length255nullabletrue)]
  14.     private ?string $name null;
  15.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  16.     private ?\DateTimeInterface $start_date null;
  17.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  18.     private ?\DateTimeInterface $end_date null;
  19.     public function getId(): ?int
  20.     {
  21.         return $this->id;
  22.     }
  23.     public function getName(): ?string
  24.     {
  25.         return $this->name;
  26.     }
  27.     public function setName(?string $name): static
  28.     {
  29.         $this->name $name;
  30.         return $this;
  31.     }
  32.     public function getStartDate(): ?\DateTimeInterface
  33.     {
  34.         return $this->start_date;
  35.     }
  36.     public function setStartDate(?\DateTimeInterface $start_date): static
  37.     {
  38.         $this->start_date $start_date;
  39.         return $this;
  40.     }
  41.     public function getEndDate(): ?\DateTimeInterface
  42.     {
  43.         return $this->end_date;
  44.     }
  45.     public function setEndDate(?\DateTimeInterface $end_date): static
  46.     {
  47.         $this->end_date $end_date;
  48.         return $this;
  49.     }
  50. }