1 | <?php |
||
21 | class AddressList extends AbstractCollection implements AddressListInterface |
||
22 | { |
||
23 | |||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | protected $name; |
||
28 | |||
29 | /** |
||
30 | * @var string |
||
31 | */ |
||
32 | protected $value; |
||
33 | |||
34 | /** |
||
35 | * Methods implementing HeaderInterface |
||
36 | */ |
||
37 | use HeaderCommonMethods; |
||
38 | |||
39 | /** |
||
40 | * Address List |
||
41 | * |
||
42 | * @param string $name |
||
43 | * |
||
44 | */ |
||
45 | 18 | public function __construct($name) |
|
50 | |||
51 | /** |
||
52 | * Adds an address to the address list |
||
53 | * |
||
54 | * @param AddressInterface $address |
||
55 | * |
||
56 | * @return AddressListInterface |
||
57 | */ |
||
58 | 16 | public function add(AddressInterface $address) |
|
63 | |||
64 | |||
65 | /** |
||
66 | * Returns the string version of this header |
||
67 | * |
||
68 | * @return string |
||
69 | */ |
||
70 | 16 | public function toString() |
|
80 | |||
81 | /** |
||
82 | * Offset to set |
||
83 | * |
||
84 | * @link http://php.net/manual/en/arrayaccess.offsetset.php |
||
85 | * |
||
86 | * @param mixed $offset The offset to assign the value to. |
||
87 | * @param mixed $value The value to set. |
||
88 | * |
||
89 | * @codeCoverageIgnore |
||
90 | */ |
||
91 | public function offsetSet($offset, $value) |
||
95 | } |