| Total Complexity | 5 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | class PathCollection implements \IteratorAggregate, \Stringable |
||
| 20 | { |
||
| 21 | private array $searchPath = []; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Constructor. |
||
| 25 | * |
||
| 26 | * @param mixed ...$searchPath The paths where SVG files are located |
||
| 27 | */ |
||
| 28 | 18 | public function __construct(...$searchPath) |
|
| 32 | } |
||
| 33 | } |
||
| 34 | |||
| 35 | 18 | public function getIterator(): \Traversable |
|
| 36 | { |
||
| 37 | 18 | foreach ($this->searchPath as $path) { |
|
| 38 | 18 | yield $path; |
|
| 39 | } |
||
| 40 | } |
||
| 41 | |||
| 42 | 3 | public function __toString(): string |
|
| 45 | } |
||
| 46 | } |
||
| 47 |