Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pomek/f84b1964b7d62f1e2ffc to your computer and use it in GitHub Desktop.
Save pomek/f84b1964b7d62f1e2ffc to your computer and use it in GitHub Desktop.
<?php
namespace Search\Criteria;
use Illuminate\Database\Eloquent\Builder;
interface CriterionInterface
{
/**
* Apply the criterion into query
*
* @param \Illuminate\Database\Eloquent\Builder
* @return \Illuminate\Database\Eloquent\Builder
*/
public function apply(Builder $model);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment