1 | <?php |
||
20 | class GenreTranslations implements EntityTranslationInterface |
||
21 | { |
||
22 | /** |
||
23 | * @ORM\Id() |
||
24 | * @ORM\GeneratedValue() |
||
25 | * @ORM\Column(type="integer") |
||
26 | * @Exclude |
||
27 | */ |
||
28 | private $id; |
||
29 | |||
30 | /** |
||
31 | * @ORM\Column(type="string", length=5) |
||
32 | */ |
||
33 | private $locale; |
||
34 | |||
35 | /** |
||
36 | * @Exclude |
||
37 | * @ORM\ManyToOne(targetEntity="App\Entity\Genre", inversedBy="translations") |
||
38 | * @ORM\JoinColumn(nullable=false) |
||
39 | */ |
||
40 | private $genre; |
||
41 | |||
42 | /** |
||
43 | * @Expose |
||
44 | * @ORM\Column(type="string", length=50) |
||
45 | */ |
||
46 | private $name; |
||
47 | |||
48 | 3 | public function __construct(Genre $genre, string $locale, string $name) |
|
54 | |||
55 | public function getId() |
||
59 | |||
60 | 1 | public function changeName(string $name) |
|
64 | |||
65 | 1 | public function getName() |
|
69 | |||
70 | 6 | public function getLocale():string |
|
74 | } |