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/be8dd82faf214c9933c9 to your computer and use it in GitHub Desktop.
Save pomek/be8dd82faf214c9933c9 to your computer and use it in GitHub Desktop.
<?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