1 | <?php |
||
19 | class ActorTranslations implements EntityTranslationInterface |
||
20 | { |
||
21 | use TranslatableTrait; |
||
22 | |||
23 | /** |
||
24 | * @ORM\Id() |
||
25 | * @ORM\GeneratedValue() |
||
26 | * @ORM\Column(type="integer") |
||
27 | */ |
||
28 | private $id; |
||
29 | |||
30 | /** |
||
31 | * @Groups({"list", "view"}) |
||
32 | * @ORM\Column(type="string", length=5) |
||
33 | */ |
||
34 | private $locale; |
||
35 | |||
36 | /** |
||
37 | * @ORM\ManyToOne(targetEntity="App\Actors\Entity\Actor", inversedBy="translations") |
||
38 | * @ORM\JoinColumn(nullable=false) |
||
39 | */ |
||
40 | private $actor; |
||
41 | |||
42 | /** |
||
43 | * @Groups({"list", "view"}) |
||
44 | * @ORM\Column(type="string", length=100, nullable=false) |
||
45 | */ |
||
46 | private $name; |
||
47 | |||
48 | /** |
||
49 | * @Groups({"list", "view"}) |
||
50 | * @ORM\Column(type="string", length=100, nullable=true) |
||
51 | */ |
||
52 | private $placeOfBirth; |
||
53 | |||
54 | /** |
||
55 | * @Groups({"list", "view"}) |
||
56 | * @ORM\Column(type="text", nullable=true) |
||
57 | */ |
||
58 | private $biography; |
||
59 | |||
60 | public function getLocale(): string |
||
64 | |||
65 | public function __construct(Actor $actor, string $locale, string $name) |
||
71 | |||
72 | public function getId() |
||
76 | |||
77 | public function getName() |
||
81 | |||
82 | public function setName(string $name): void |
||
86 | |||
87 | public function getPlaceOfBirth() |
||
91 | |||
92 | public function setPlaceOfBirth(string $placeOfBirth): void |
||
96 | |||
97 | public function getBiography() |
||
101 | |||
102 | public function setBiography(string $biography): void |
||
106 | } |
||
107 |