- /**
- * Valid include parameters and their corresponding formatter methods.
- * These parameters allow for additional related data, like titles or tags,
- * to be included in the search results when requested via the API.
- */
- protected const VALID_INCLUDES = [
- 'titles' => 'withRelatedTitles',
- 'tags' => 'withTags',
- ];
-
- public function __construct(SearchRunner $searchRunner, SearchResultsFormatter $resultsFormatter)
- {
- $this->searchRunner = $searchRunner;
- $this->resultsFormatter = $resultsFormatter;
+ public function __construct(
+ protected SearchRunner $searchRunner,
+ protected SearchResultsFormatter $resultsFormatter
+ ) {