| 1 | <?php |
||
| 9 | class Violations implements \IteratorAggregate, \Countable |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var array |
||
| 13 | */ |
||
| 14 | private $data = []; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @inheritdoc |
||
| 18 | */ |
||
| 19 | public function getIterator() |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param Violation $violation |
||
| 26 | */ |
||
| 27 | public function add(Violation $violation) |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @return int |
||
| 34 | */ |
||
| 35 | public function count() |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @return string |
||
| 42 | */ |
||
| 43 | public function __toString() |
||
| 51 | } |
||
| 52 |