| 1 | <?php |
||
| 9 | class MessageCollection |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var \ArrayIterator |
||
| 13 | */ |
||
| 14 | protected $messageCollection; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param array $messages |
||
| 18 | */ |
||
| 19 | public function __construct(array $messages = array()) |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param MessageInterface $message |
||
| 30 | * @return $this |
||
| 31 | */ |
||
| 32 | public function addMessage(MessageInterface $message) |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @return \ArrayIterator |
||
| 40 | */ |
||
| 41 | public function getMessageCollection() |
||
| 47 | } |
||
| 48 |