rinvex/laravel-repositories

View on GitHub
src/Contracts/CriterionContract.php

Summary

Maintainability
A
0 mins
Test Coverage
<?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);
}