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

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

protected checkIncludePaths ( ErrorCollection $errors, Neomerx\JsonApi\Contracts\Encoder\Parameters\EncodingParametersInterface $parameters )
$errors Neomerx\JsonApi\Exceptions\ErrorCollection
$parameters Neomerx\JsonApi\Contracts\Encoder\Parameters\EncodingParametersInterface
    protected function checkIncludePaths(ErrorCollection $errors, EncodingParametersInterface $parameters)
    {
        $withinAllowed = $this->valuesWithinAllowed($parameters->getIncludePaths(), $this->includePaths);
        $withinAllowed === true ?: $errors->addQueryParameterError(QP::PARAM_INCLUDE, T::t('Include paths should contain only allowed ones.'));
    }