Last active
September 5, 2015 20:09
-
-
Save pomek/144a41d813a3b0a4d1a7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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