Neomerx\JsonApi\Http\Query\RestrictiveQueryChecker::checkPaging PHP Method

checkPaging() protected method

protected checkPaging ( ErrorCollection $errors, Neomerx\JsonApi\Contracts\Encoder\Parameters\EncodingParametersInterface $parameters )
$errors Neomerx\JsonApi\Exceptions\ErrorCollection
$parameters Neomerx\JsonApi\Contracts\Encoder\Parameters\EncodingParametersInterface
    protected function checkPaging(ErrorCollection $errors, EncodingParametersInterface $parameters)
    {
        $withinAllowed = $this->keysWithinAllowed($parameters->getPaginationParameters(), $this->pagingParameters);
        $withinAllowed === true ?: $errors->addQueryParameterError(QP::PARAM_PAGE, T::t('Page parameter should contain only allowed values.'));
    }