| 1 | <?php |
||
| 17 | class Address { |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | private $type; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var array |
||
| 26 | */ |
||
| 27 | private $adr = []; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @param string $type |
||
| 31 | * @param array $adr |
||
| 32 | */ |
||
| 33 | 4 | public function __construct( $type, array $adr = [] ) { |
|
| 37 | |||
| 38 | /** |
||
| 39 | * @since 3.1 |
||
| 40 | * |
||
| 41 | * @return boolean |
||
| 42 | */ |
||
| 43 | 2 | public function hasAddress() { |
|
| 46 | |||
| 47 | /** |
||
| 48 | * @since 3.1 |
||
| 49 | * |
||
| 50 | * @param string $key |
||
| 51 | * @param string $value |
||
| 52 | */ |
||
| 53 | 2 | public function set( $key, $value ) { |
|
| 56 | |||
| 57 | /** |
||
| 58 | * @return string |
||
| 59 | */ |
||
| 60 | 2 | public function text() { |
|
| 86 | |||
| 87 | } |
||
| 88 |