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

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

If path matches one of the included paths.
protected hasMatchWithIncludedPaths ( array $paths, string $path ) : boolean
$paths array
$path string
Результат boolean
    protected function hasMatchWithIncludedPaths(array $paths, $path)
    {
        $hasMatch = false;
        if ($path !== null) {
            foreach ($paths as $targetPath) {
                if (strpos($targetPath, $path) === 0) {
                    $hasMatch = true;
                    break;
                }
            }
        }
        return $hasMatch;
    }