1 | <?php |
||
8 | class ShortMessageCollection |
||
9 | { |
||
10 | /** |
||
11 | * The items of the collection. |
||
12 | * |
||
13 | * @var array |
||
14 | */ |
||
15 | protected $items = []; |
||
16 | |||
17 | /** |
||
18 | * Push a new short message to the given collection. |
||
19 | * |
||
20 | * @param ShortMessage $shortMessage |
||
21 | * |
||
22 | * @return self |
||
23 | */ |
||
24 | 3 | public function push(ShortMessage $shortMessage) |
|
36 | |||
37 | /** |
||
38 | * Get the xml representation of the items. |
||
39 | * |
||
40 | * @return string |
||
41 | */ |
||
42 | 1 | public function toXml() |
|
52 | |||
53 | /** |
||
54 | * Get the array presentation of the items. |
||
55 | * |
||
56 | * @return array |
||
57 | */ |
||
58 | 1 | public function toArray() |
|
74 | } |
||
75 |