Neomerx\JsonApi\Http\Query\RestrictiveQueryChecker::checkFiltering PHP Метод

checkFiltering() защищенный Метод

protected checkFiltering ( ErrorCollection $errors, Neomerx\JsonApi\Contracts\Encoder\Parameters\EncodingParametersInterface $parameters )
$errors Neomerx\JsonApi\Exceptions\ErrorCollection
$parameters Neomerx\JsonApi\Contracts\Encoder\Parameters\EncodingParametersInterface
    protected function checkFiltering(ErrorCollection $errors, EncodingParametersInterface $parameters)
    {
        $withinAllowed = $this->keysWithinAllowed($parameters->getFilteringParameters(), $this->filteringParameters);
        $withinAllowed === true ?: $errors->addQueryParameterError(QP::PARAM_FILTER, T::t('Filter should contain only allowed values.'));
    }