1 | <?php |
||
9 | class Notifications implements IteratorAggregate, Countable |
||
10 | { |
||
11 | /** |
||
12 | * @var array |
||
13 | */ |
||
14 | private $notifications; |
||
15 | |||
16 | /** |
||
17 | * @param array $notifications |
||
18 | */ |
||
19 | 9 | public function __construct(array $notifications = []) |
|
23 | |||
24 | /** |
||
25 | * @return ArrayIterator |
||
26 | */ |
||
27 | 3 | public function getIterator() |
|
31 | |||
32 | /** |
||
33 | * @return int |
||
34 | */ |
||
35 | public function count() |
||
39 | } |
||
40 |