src/Entity/Movie.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\MovieRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use JMS\Serializer\Annotation as Serializer;
  7. #[ORM\Entity(repositoryClassMovieRepository::class)]
  8. class Movie
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column]
  13.     private ?int $id null;
  14.     #[ORM\ManyToOne(inversedBy'movies')]
  15.     private ?Business $node null;
  16.     #[ORM\Column(length255)]
  17.     private ?string $cinemaId null;
  18.     #[ORM\Column(length255)]
  19.     private ?string $name null;
  20.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  21.     private ?\DateTimeInterface $previewDate null;
  22.     #[ORM\Column]
  23.     private ?float $price null;
  24.     #[ORM\Column(nullabletrue)]
  25.     private ?int $length null;
  26.     #[ORM\Column(length20nullabletrue)]
  27.     private ?string $room null;
  28.     #[ORM\Column(length255nullabletrue)]
  29.     private ?string $type null;
  30.     #[ORM\Column]
  31.     private ?int $programId null;
  32.     public function getId(): ?int
  33.     {
  34.         return $this->id;
  35.     }
  36.     public function getNode(): ?Business
  37.     {
  38.         return $this->node;
  39.     }
  40.     public function setNode(?Business $node): static
  41.     {
  42.         $this->node $node;
  43.         return $this;
  44.     }
  45.     public function getCinemaId(): ?string
  46.     {
  47.         return $this->cinemaId;
  48.     }
  49.     public function setCinemaId(string $cinemaId): static
  50.     {
  51.         $this->cinemaId $cinemaId;
  52.         return $this;
  53.     }
  54.     public function getName(): ?string
  55.     {
  56.         return $this->name;
  57.     }
  58.     public function setName(string $name): static
  59.     {
  60.         $this->name $name;
  61.         return $this;
  62.     }
  63.     public function getPreviewDate(): ?\DateTimeInterface
  64.     {
  65.         return $this->previewDate;
  66.     }
  67.     public function setPreviewDate(\DateTimeInterface $previewDate): static
  68.     {
  69.         $this->previewDate $previewDate;
  70.         return $this;
  71.     }
  72.     public function getPrice(): ?float
  73.     {
  74.         return $this->price;
  75.     }
  76.     public function setPrice(float $price): static
  77.     {
  78.         $this->price $price;
  79.         return $this;
  80.     }
  81.     public function getLength(): ?int
  82.     {
  83.         return $this->length;
  84.     }
  85.     public function setLength(?int $length): static
  86.     {
  87.         $this->length $length;
  88.         return $this;
  89.     }
  90.     public function getRoom(): ?string
  91.     {
  92.         return $this->room;
  93.     }
  94.     public function setRoom(?string $room): static
  95.     {
  96.         $this->room $room;
  97.         return $this;
  98.     }
  99.     public function getType(): ?string
  100.     {
  101.         return $this->type;
  102.     }
  103.     public function setType(?string $type): static
  104.     {
  105.         $this->type $type;
  106.         return $this;
  107.     }
  108.     public function getProgramId(): ?int
  109.     {
  110.         return $this->programId;
  111.     }
  112.     public function setProgramId(int $programId): static
  113.     {
  114.         $this->programId $programId;
  115.         return $this;
  116.     }
  117. }