Neomerx\JsonApi\Contracts\Encoder\Parameters\EncodingParametersInterface::getFilteringParameters PHP Метод

getFilteringParameters() публичный Метод

Filtering parameters are not detailed in the specification however a keyword 'filter' is reserved for filtering. This method returns key and value pairs from input 'filter' parameter.
public getFilteringParameters ( ) : array | null
Результат array | null
    public function getFilteringParameters();

Usage Example

Пример #1
0
 /**
  * @param ErrorCollection             $errors
  * @param EncodingParametersInterface $parameters
  *
  * @return array
  */
 public function mapParameters(ErrorCollection $errors, EncodingParametersInterface $parameters)
 {
     $filters = $this->mapFilterParameters($errors, $parameters->getFilteringParameters());
     $sorts = $this->mapSortParameters($errors, $parameters->getSortParameters());
     $includes = $this->mapIncludeParameters($errors, $parameters->getIncludePaths());
     $paging = $parameters->getPaginationParameters();
     return [$filters, $sorts, $includes, $paging];
 }
All Usage Examples Of Neomerx\JsonApi\Contracts\Encoder\Parameters\EncodingParametersInterface::getFilteringParameters