| 1 | <?php  | 
            ||
| 17 | class Notifications implements \IteratorAggregate  | 
            ||
| 18 | { | 
            ||
| 19 | private $notifications;  | 
            ||
| 20 | |||
| 21 | public function __construct(Notification ...$notifications)  | 
            ||
| 25 | |||
| 26 | public function add(Notification $notification) : void  | 
            ||
| 30 | |||
| 31 | public function of(int $index) : Notification  | 
            ||
| 39 | |||
| 40 | public function count() : int  | 
            ||
| 44 | |||
| 45 | public function getIterator() : \ArrayIterator  | 
            ||
| 49 | }  | 
            ||
| 50 |