Neomerx\JsonApi\Encoder\Parameters\ParametersAnalyzer::isPathIncluded PHP Метод

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

public isPathIncluded ( $path, $type )
    public function isPathIncluded($path, $type)
    {
        // check if it's in cache
        if (isset($this->includePathsCache[$type][$path]) === true) {
            return $this->includePathsCache[$type][$path];
        }
        $includePaths = $this->getIncludePathsByType($type);
        $result = $this->hasExactPathMatch($includePaths, $path) === true || $this->hasMatchWithIncludedPaths($includePaths, $path) === true;
        $this->includePathsCache[$type][$path] = $result;
        return $result;
    }