for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Jellyfish\FinderSymfony;
use Iterator;
use Jellyfish\Finder\FinderInterface;
use Symfony\Component\Finder\Finder as SymfonyFinder;
class Finder implements FinderInterface
{
/**
* @var \Symfony\Component\Finder\Finder
*/
protected $symfonyFinder;
* @param \Symfony\Component\Finder\Finder $symfonyFinder
public function __construct(SymfonyFinder $symfonyFinder)
$this->symfonyFinder = $symfonyFinder;
}
* @param string $directory
*
* @return \Jellyfish\Finder\FinderInterface
public function in(string $directory): FinderInterface
$this->symfonyFinder->in($directory);
return $this;
* @param string $pattern
public function name(string $pattern): FinderInterface
$this->symfonyFinder->name($pattern);
* @param int $level
public function depth(int $level): FinderInterface
$this->symfonyFinder->depth($level);
* @return \Iterator
public function getIterator(): Iterator
return $this->symfonyFinder->getIterator();