1 | <?php |
||
17 | class LocationDto |
||
18 | { |
||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | private $unLocode; |
||
23 | |||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | private $name; |
||
28 | |||
29 | /** |
||
30 | * @param string $name |
||
31 | */ |
||
32 | public function setName(string $name) |
||
33 | { |
||
34 | Assertion::notEmpty($name); |
||
35 | $this->name = $name; |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * @return string |
||
40 | */ |
||
41 | public function getName(): string |
||
45 | |||
46 | /** |
||
47 | * @param string $unLocode |
||
48 | */ |
||
49 | public function setUnLocode(string $unLocode) |
||
50 | { |
||
51 | Assertion::notEmpty($unLocode); |
||
52 | $this->unLocode = $unLocode; |
||
53 | } |
||
54 | |||
55 | /** |
||
56 | * @return string |
||
57 | */ |
||
58 | public function getUnLocode(): string |
||
62 | } |
||
63 |