BoothAndItemSearchService
in package
implements
BoothAndItemSearch
Application service to search booths and (optionally) their items.
Table of Contents
Interfaces
- BoothAndItemSearch
- Port for combined booth and booth-item searches.
Properties
Methods
- __construct() : mixed
- search() : BoothAndItemSearchResult
- Execute a search and return combined booth/item results.
- emptyBoothResult() : BoothSearchResult
- Build an empty booth search result for item-only searches.
- extractBoothIds() : array<string|int, BoothId>
- Extract booth ids from results for item filtering.
Properties
$boothItemRepository
private
BoothItemRepository
$boothItemRepository
$boothRepository
private
BoothRepository
$boothRepository
Methods
__construct()
public
__construct(BoothRepository $boothRepository, BoothItemRepository $boothItemRepository) : mixed
Parameters
- $boothRepository : BoothRepository
- $boothItemRepository : BoothItemRepository
search()
Execute a search and return combined booth/item results.
public
search(BoothSearchCriteria $criteria) : BoothAndItemSearchResult
Parameters
- $criteria : BoothSearchCriteria
Return values
BoothAndItemSearchResultemptyBoothResult()
Build an empty booth search result for item-only searches.
private
emptyBoothResult(BoothSearchCriteria $criteria) : BoothSearchResult
Parameters
- $criteria : BoothSearchCriteria
Return values
BoothSearchResultextractBoothIds()
Extract booth ids from results for item filtering.
private
extractBoothIds(array<string|int, mixed> $booths) : array<string|int, BoothId>
Parameters
- $booths : array<string|int, mixed>