1 | <?php |
||
15 | class ImdbCountry |
||
16 | { |
||
17 | /** |
||
18 | * @ORM\Id() |
||
19 | * @ORM\GeneratedValue() |
||
20 | * @ORM\Column(type="integer") |
||
21 | */ |
||
22 | private $id; |
||
23 | |||
24 | /** |
||
25 | * @ORM\OneToOne(targetEntity="App\Countries\Entity\Country") |
||
26 | * @ORM\JoinColumn(nullable=false) |
||
27 | */ |
||
28 | private $country; |
||
29 | |||
30 | /** |
||
31 | * @ORM\Column(type="string", length=50, unique=true) |
||
32 | */ |
||
33 | private $name; |
||
34 | |||
35 | /** |
||
36 | * @ORM\Column(type="string", length=255) |
||
37 | */ |
||
38 | private $altNames; |
||
39 | |||
40 | public function __construct(Country $country, string $name = '', string $altNames = '') |
||
46 | |||
47 | public function getId() |
||
51 | |||
52 | public function getCountry(): Country |
||
56 | |||
57 | public function getName(): string |
||
61 | |||
62 | public function getAltNames(): string |
||
66 | } |
||
67 |