src/Contracts/CriterionContract.php
<?php
declare(strict_types=1);
namespace Rinvex\Repository\Contracts;
interface CriterionContract
{
/**
* Apply current criterion to the given query and return query.
*
* @param mixed $query
* @param RepositoryContract $repository
*
* @return mixed
*/
public function apply($query, $repository);
}