1 | <?php |
||
18 | class MovieTranslations implements EntityTranslationInterface |
||
19 | { |
||
20 | /** |
||
21 | * @ORM\Id() |
||
22 | * @ORM\GeneratedValue() |
||
23 | * @ORM\Column(type="integer") |
||
24 | */ |
||
25 | private $id; |
||
26 | |||
27 | /** |
||
28 | * @Groups({"list", "view"}) |
||
29 | * @ORM\Column(type="string", length=5) |
||
30 | */ |
||
31 | private $locale; |
||
32 | |||
33 | /** |
||
34 | * @ORM\ManyToOne(targetEntity="App\Movies\Entity\Movie", inversedBy="translations") |
||
35 | * @ORM\JoinColumn(nullable=false) |
||
36 | */ |
||
37 | private $movie; |
||
38 | |||
39 | /** |
||
40 | * @ORM\Column(type="string", length=100) |
||
41 | * @Groups({"list", "view"}) |
||
42 | */ |
||
43 | private $title; |
||
44 | |||
45 | /** |
||
46 | * @ORM\Column(type="string", length=255) |
||
47 | * @Groups({"list", "view"}) |
||
48 | */ |
||
49 | private $posterUrl; |
||
50 | |||
51 | /** |
||
52 | * @ORM\Column(type="text") |
||
53 | * @Groups({"view"}) |
||
54 | */ |
||
55 | private $overview; |
||
56 | |||
57 | 1 | public function __construct(Movie $movie, string $locale, string $title, string $posterUrl, string $overview) |
|
65 | |||
66 | public function getId() |
||
70 | |||
71 | 2 | public function getTitle() |
|
75 | |||
76 | 2 | public function getLocale(): string |
|
80 | |||
81 | /** |
||
82 | * @return mixed |
||
83 | */ |
||
84 | 2 | public function getPosterUrl() |
|
88 | |||
89 | /** |
||
90 | * @return mixed |
||
91 | */ |
||
92 | 1 | public function getOverview() |
|
96 | } |