Raml\Validator\ValidatorSchemaHelper::getResource PHP Метод

getResource() приватный Метод

private getResource ( string $path ) : Raml\Resource
$path string
Результат Raml\Resource
    private function getResource($path)
    {
        try {
            return $this->apiDefinition->getResourceByUri($path);
        } catch (ResourceNotFoundException $exception) {
            $message = sprintf('Schema for URI %s was not found in API definition', $path);
            throw new ValidatorSchemaException($message, 0, $exception);
        }
    }