1 | <?php |
||
9 | class CityName implements GetParameterInterface |
||
10 | { |
||
11 | /** |
||
12 | * @var string |
||
13 | */ |
||
14 | protected $name; |
||
15 | |||
16 | /** |
||
17 | * @var string|null |
||
18 | */ |
||
19 | protected $code; |
||
20 | |||
21 | /** |
||
22 | * CityName constructor. |
||
23 | * |
||
24 | * @param string $name |
||
25 | * @param string|null $code |
||
26 | */ |
||
27 | public function __construct(string $name, ?string $code = null) |
||
32 | |||
33 | /** |
||
34 | * @return string |
||
35 | */ |
||
36 | public function getName(): string |
||
40 | |||
41 | /** |
||
42 | * @return string|null |
||
43 | */ |
||
44 | public function getCode(): ?string |
||
48 | |||
49 | /** |
||
50 | * {@inheritdoc} |
||
51 | */ |
||
52 | public function getGetParameterValue(): string |
||
60 | |||
61 | /** |
||
62 | * {@inheritdoc} |
||
63 | */ |
||
64 | public function getGetParameterName(): string |
||
68 | } |
||
69 |