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