public function getURIs(array $criteria): URIs
    {
        $uris = new URIs();

        foreach ($this->extensions as $extension) {
            $finder = new Finder();

            try {
                $finder->files()
                    ->name($this->getNamePattern($criteria, $extension))
                    ->in($this->getPathPattern($this->getRelativePath($criteria)));
                foreach ($finder as $file) {
                    /** @var SplFileInfo $file */
                    $uris->add($file->getPathname());
                }
            } catch (Exception $exception) {
                // Fail silently;
            }
        }

        return $uris;
    }
public function getURIs(array $criteria): URIs
    {
        $uris = new URIs();

        foreach ($this->extensions as $extension) {
            $finder = new Finder();

            try {
                $finder->files()
                    ->name($this->getNamePattern($criteria, $extension))
                    ->in($this->getPathPattern($this->getRelativePath($criteria)));
                foreach ($finder as $file) {
                    /** @var SplFileInfo $file */
                    $uris->add($file->getPathname());
                }
            } catch (Exception $exception) {
                // Fail silently;
            }
        }

        return $uris;
    }
public function getURIs ( array $ criteria ) : URIs { $ uris = new URIs ( ) ; foreach ( $ this -> extensions as $ extension ) { $ finder = new Finder ( ) ; try { $ finder -> files ( ) -> name ( $ this -> getNamePattern ( $ criteria , $ extension ) ) -> in ( $ this -> getPathPattern ( $ this -> getRelativePath ( $ criteria ) ) ) ; foreach ( $ finder as $ file ) { /** @var SplFileInfo $file */ $ uris -> add ( $ file -> getPathname ( ) ) ; } } catch ( Exception $ exception ) { // Fail silently; } } return $ uris ; }
Get all URIs that match the given criteria.

@since 0.1.1

@param array $criteria Criteria to match.

@return URIs URIs that match the criteria or an empty collection if none found.
Get all URIs that match the given criteria .