Last active
September 5, 2015 20:09
-
-
Save pomek/be8dd82faf214c9933c9 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 | |
/** | |
* Builds the search criterion based on Search Query Params. | |
* | |
* @param \Search\SearchQueryParams $params | |
* @return void | |
*/ | |
protected function buildSearchFilters(SearchQueryParams $params) | |
{ | |
// … | |
$this->collection->add( | |
$this->criterionFactory->createRoomCanHostEventOfTypeCriteria($params->getEventTypeId()) | |
); | |
$this->collection->add( | |
$this->criterionFactory->createVenueHasCateringOptionCriteria($params->getCateringOptionIds()) | |
); | |
$this->collection->add( | |
$this->criterionFactory->createRoomHasEnoughCapacityCriteria($params->getPeople()) | |
); | |
// … | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment