| Total Complexity | 4 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class Finder implements FinderInterface |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var \Symfony\Component\Finder\Finder |
||
| 13 | */ |
||
| 14 | protected $symfonyFinder; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param \Symfony\Component\Finder\Finder $symfonyFinder |
||
| 18 | */ |
||
| 19 | public function __construct(SymfonyFinder $symfonyFinder) |
||
| 20 | { |
||
| 21 | $this->symfonyFinder = $symfonyFinder; |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param string $directory |
||
| 26 | * |
||
| 27 | * @return \Jellyfish\Finder\FinderInterface |
||
| 28 | */ |
||
| 29 | public function in(string $directory): FinderInterface |
||
| 30 | { |
||
| 31 | $this->symfonyFinder->in($directory); |
||
| 32 | |||
| 33 | return $this; |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @param string $pattern |
||
| 38 | * |
||
| 39 | * @return \Jellyfish\Finder\FinderInterface |
||
| 40 | */ |
||
| 41 | public function name(string $pattern): FinderInterface |
||
| 42 | { |
||
| 43 | $this->symfonyFinder->name($pattern); |
||
| 44 | |||
| 45 | return $this; |
||
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @return \Iterator |
||
| 50 | */ |
||
| 51 | public function getIterator(): Iterator |
||
| 54 | } |
||
| 55 | } |
||
| 56 |