Soyhuce/l5-repository

View on GitHub
src/Prettus/Repository/Contracts/CriteriaInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
namespace Prettus\Repository\Contracts;

/**
 * Interface CriteriaInterface
 *
 * @package Prettus\Repository\Contracts
 */
interface CriteriaInterface
{
    /**
     * Apply criteria in query repository
     *
     * @param                     $model
     * @param RepositoryInterface $repository
     *
     * @return mixed
     */
    public function apply($model, RepositoryInterface $repository);
}