diff --git a/src/Model/SearchTrait.php b/src/Model/SearchTrait.php index 8ace3dfd..9c250e9e 100644 --- a/src/Model/SearchTrait.php +++ b/src/Model/SearchTrait.php @@ -93,7 +93,7 @@ public function searchManager() * name exists. * * @param array $params The parameters array to extract from. - * @param \Search\Model\Filter\Base[] $filters The filters to match against. + * @param \Search\Model\Filter\FilterInterface[]|\Search\Model\Filter\FilterCollectionInterface $filters The filters to match against. * @return array The extracted parameters. */ protected function _extractParams($params, $filters) @@ -145,7 +145,7 @@ protected function _extractParams($params, $filters) * ``` * * @param array $params The parameters array to flatten. - * @param array $filters The array of filters with configuration + * @param \Search\Model\Filter\FilterInterface[]|\Search\Model\Filter\FilterCollectionInterface $filters The array of filters with configuration * @return array The flattened parameters array. */ protected function _flattenParams($params, $filters) @@ -175,7 +175,7 @@ protected function _flattenParams($params, $filters) * Gets all filters by the default or given collection from the search manager * * @param string|null $collection name of collection - * @return \Search\Model\Filter\Base[] An array of filters for the defined fields. + * @return \Search\Model\Filter\FilterInterface[] An array of filters for the defined fields. */ protected function _getFilters($collection = 'default') { @@ -185,7 +185,7 @@ protected function _getFilters($collection = 'default') /** * Processes the given filters. * - * @param \Search\Model\Filter\Base[] $filters The filters to process. + * @param \Search\Model\Filter\FilterInterface[]|\Search\Model\Filter\FilterCollectionInterface $filters The filters to process. * @param array $params The parameters to pass to the filters. * @param \Cake\Datasource\QueryInterface $query The query to pass to the filters. * @return \Cake\Datasource\QueryInterface The query processed by the filters.