1 | <?php |
||
16 | class CountryMapping |
||
17 | { |
||
18 | /** |
||
19 | * @var int |
||
20 | * |
||
21 | * @ORM\Id |
||
22 | * @ORM\GeneratedValue |
||
23 | * @ORM\Column(type="integer") |
||
24 | */ |
||
25 | protected $id; |
||
26 | |||
27 | /** |
||
28 | * @var string |
||
29 | * |
||
30 | * @Assert\NotBlank() |
||
31 | * |
||
32 | * @ORM\Column(type="string", unique=true) |
||
33 | */ |
||
34 | protected $source; |
||
35 | |||
36 | /** |
||
37 | * ISO3166 country code. |
||
38 | * |
||
39 | * @var string |
||
40 | * |
||
41 | * @Assert\NotBlank() |
||
42 | * @Assert\Country() |
||
43 | * |
||
44 | * @ORM\Column(type="string", length=2) |
||
45 | */ |
||
46 | protected $countryCode; |
||
47 | |||
48 | /** |
||
49 | * @return int |
||
50 | */ |
||
51 | public function getId(): ?int |
||
55 | |||
56 | /** |
||
57 | * @param int $id |
||
58 | * |
||
59 | * @return CountryMapping |
||
60 | */ |
||
61 | public function setId(int $id): CountryMapping |
||
67 | |||
68 | /** |
||
69 | * @return string |
||
70 | */ |
||
71 | public function getSource(): ?string |
||
75 | |||
76 | /** |
||
77 | * @param string $source |
||
78 | * |
||
79 | * @return CountryMapping |
||
80 | */ |
||
81 | public function setSource(string $source): CountryMapping |
||
87 | |||
88 | /** |
||
89 | * @return string |
||
90 | */ |
||
91 | public function getCountryCode(): ?string |
||
95 | |||
96 | /** |
||
97 | * @param string $countryCode |
||
98 | * |
||
99 | * @return CountryMapping |
||
100 | */ |
||
101 | public function setCountryCode(string $countryCode): CountryMapping |
||
107 | } |
||
108 |