| Total Complexity | 3 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class ScannedSourceFileCollection implements \IteratorAggregate |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var ScannedSourceFile[] |
||
| 13 | */ |
||
| 14 | private $scannedFiles = []; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Retrieve an external iterator |
||
| 18 | * @link http://php.net/manual/en/iteratoraggregate.getiterator.php |
||
| 19 | * @return Traversable An instance of an object implementing <b>Iterator</b> or |
||
| 20 | * <b>Traversable</b> |
||
| 21 | * @since 5.0.0 |
||
| 22 | */ |
||
| 23 | 1 | public function getIterator() |
|
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @return int |
||
| 30 | */ |
||
| 31 | 1 | public function getTotal() |
|
| 32 | { |
||
| 33 | 1 | return count($this->scannedFiles); |
|
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @param ScannedSourceFile $scannedFile |
||
| 38 | */ |
||
| 39 | 1 | public function add(ScannedSourceFile $scannedFile): void |
|
| 42 | } |
||
| 43 | } |