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 | 20 | public function __construct(...$searchPath) |
|
32 | } |
||
33 | } |
||
34 | |||
35 | 20 | public function getIterator(): \Traversable |
|
36 | { |
||
37 | 20 | foreach ($this->searchPath as $path) { |
|
38 | 20 | yield $path; |
|
39 | } |
||
40 | } |
||
41 | |||
42 | 4 | public function __toString(): string |
|
45 | } |
||
46 | } |
||
47 |