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/144a41d813a3b0a4d1a7 to your computer and use it in GitHub Desktop.
Save pomek/144a41d813a3b0a4d1a7 to your computer and use it in GitHub Desktop.
<?php
namespace Search\Repository;
use Search\Criteria\CriterionInterface;
interface RepositoryWithCriteriaInterface
{
/**
* Add new criterion into query.
*
* @param \Search\Criteria\CriterionInterface $criterion
* @return self
*/
public function pushCriterion(CriterionInterface criterion);
/**
* Apply all given criteria into current query.
*
* @return self
*/
public function applyCriteria();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment