for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace KGzocha\Searcher\Chain;
use KGzocha\Searcher\Criteria\Collection\CriteriaCollectionInterface;
/**
* Use this class to indicate that there is no more searchers in the chain.
* It is like a NullObject. It does not do much.
*
* @author Krzysztof Gzocha <[email protected]>
*/
final class EndTransformer implements TransformerInterface
{
* {@inheritdoc}
public function transform($results, CriteriaCollectionInterface $criteria): CriteriaCollectionInterface
throw new \RuntimeException(
'Transform method on EmptyTransformer should never be called.'
);
}
public function skip($results): bool
return false;