|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
/* |
|
4
|
|
|
* This file is part of the core-library package. |
|
5
|
|
|
* |
|
6
|
|
|
* (c) 2019 WEBEWEB |
|
7
|
|
|
* |
|
8
|
|
|
* For the full copyright and license information, please view the LICENSE |
|
9
|
|
|
* file that was distributed with this source code. |
|
10
|
|
|
*/ |
|
11
|
|
|
|
|
12
|
|
|
namespace WBW\Library\Core\Model; |
|
13
|
|
|
|
|
14
|
|
|
use WBW\Library\Core\Model\Attribute\StringAddresseeTrait; |
|
15
|
|
|
use WBW\Library\Core\Model\Attribute\StringCountryTrait; |
|
16
|
|
|
use WBW\Library\Core\Model\Attribute\StringHouseNumberTrait; |
|
17
|
|
|
use WBW\Library\Core\Model\Attribute\StringLocationTrait; |
|
18
|
|
|
use WBW\Library\Core\Model\Attribute\StringPostalCodeTrait; |
|
19
|
|
|
use WBW\Library\Core\Model\Attribute\StringStreetNameTrait; |
|
20
|
|
|
|
|
21
|
|
|
/** |
|
22
|
|
|
* Address trait. |
|
23
|
|
|
* |
|
24
|
|
|
* @author webeweb <https://github.com/webeweb> |
|
25
|
|
|
* @package WBW\Library\Core\Model |
|
26
|
|
|
*/ |
|
27
|
|
|
trait AddressTrait { |
|
28
|
|
|
|
|
29
|
|
|
use StringAddresseeTrait; |
|
30
|
|
|
use StringCountryTrait; |
|
31
|
|
|
use StringHouseNumberTrait; |
|
32
|
|
|
use StringLocationTrait; |
|
33
|
|
|
use StringPostalCodeTrait; |
|
34
|
|
|
use StringStreetNameTrait; |
|
35
|
|
|
|
|
36
|
|
|
/** |
|
37
|
|
|
* Addressee description. |
|
38
|
|
|
* |
|
39
|
|
|
* @var string|null |
|
40
|
|
|
*/ |
|
41
|
|
|
private $addresseeDescription; |
|
42
|
|
|
|
|
43
|
|
|
/** |
|
44
|
|
|
* Get the addressee description. |
|
45
|
|
|
* |
|
46
|
|
|
* @return string|null Returns the addressee description. |
|
47
|
|
|
*/ |
|
48
|
|
|
public function getAddresseeDescription(): ?string { |
|
49
|
|
|
return $this->addresseeDescription; |
|
50
|
|
|
} |
|
51
|
|
|
|
|
52
|
|
|
/** |
|
53
|
|
|
* Set the addressee description. |
|
54
|
|
|
* |
|
55
|
|
|
* @param string|null $addresseeDescription The addressee description. |
|
56
|
|
|
* @return self Returns this instance. |
|
57
|
|
|
*/ |
|
58
|
|
|
public function setAddresseeDescription(?string $addresseeDescription): self { |
|
59
|
|
|
$this->addresseeDescription = $addresseeDescription; |
|
60
|
|
|
return $this; |
|
61
|
|
|
} |
|
62
|
|
|
} |
|
63
|
|
|
|