-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize Searcher::searchForModel and collections (#86)
* Optimize Searcher::searchForModel and collections * Fixed PHPDoc
- Loading branch information
1 parent
58c5209
commit 4309e0e
Showing
5 changed files
with
50 additions
and
16 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,13 +10,13 @@ | |
* @author Krzysztof Gzocha <[email protected]> | ||
* @author Daniel Ribeiro <[email protected]> | ||
*/ | ||
interface CriteriaCollectionInterface | ||
interface CriteriaCollectionInterface extends \Countable, \IteratorAggregate | ||
{ | ||
/** | ||
* Will return array of CriteriaInterface | ||
* that returns true in shouldBeApplied(). | ||
* | ||
* @return CriteriaInterface[] | ||
* @return CriteriaCollectionInterface | ||
*/ | ||
public function getApplicableCriteria(); | ||
|
||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
* | ||
* @author Krzysztof Gzocha <[email protected]> | ||
*/ | ||
interface CriteriaBuilderCollectionInterface | ||
interface CriteriaBuilderCollectionInterface extends \Countable, \IteratorAggregate | ||
{ | ||
/** | ||
* @param CriteriaBuilderInterface $criteriaBuilder | ||
|
@@ -30,7 +30,7 @@ public function getCriteriaBuilders(); | |
/** | ||
* @param SearchingContextInterface $searchingContext | ||
* | ||
* @return CriteriaBuilderInterface[] | ||
* @return CriteriaBuilderCollectionInterface | ||
*/ | ||
public function getCriteriaBuildersForContext( | ||
SearchingContextInterface $searchingContext | ||
|
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