1 | <?php |
||
18 | class MovieReleaseDate |
||
19 | { |
||
20 | /** |
||
21 | * @ORM\Id() |
||
22 | * @ORM\GeneratedValue() |
||
23 | * @ORM\Column(type="integer") |
||
24 | * @Groups({"list", "view"}) |
||
25 | */ |
||
26 | private $id; |
||
27 | |||
28 | /** |
||
29 | * @ORM\ManyToOne(targetEntity="App\Movies\Entity\Movie") |
||
30 | * @ORM\JoinColumn(nullable=false) |
||
31 | * @Groups({"list", "view"}) |
||
32 | */ |
||
33 | private $movie; |
||
34 | |||
35 | /** |
||
36 | * @ORM\ManyToOne(targetEntity="App\Countries\Entity\Country") |
||
37 | * @ORM\JoinColumn(nullable=false) |
||
38 | * @Groups({"list", "view"}) |
||
39 | */ |
||
40 | private $country; |
||
41 | |||
42 | /** |
||
43 | * @Groups({"list", "view"}) |
||
44 | * @ORM\Column(type="date", nullable=true) |
||
45 | */ |
||
46 | private $date; |
||
47 | |||
48 | public function __construct(Movie $movie, Country $country, \DateTimeInterface $date) |
||
54 | |||
55 | public function getId(): int |
||
59 | |||
60 | public function getMovie(): Movie |
||
64 | |||
65 | public function getCountry(): Country |
||
69 | |||
70 | public function getDate(): \DateTimeInterface |
||
74 | } |
||
75 |