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

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

private getMethod ( string $method, string $path ) : Raml\Method
$method string
$path string
Результат Raml\Method
    private function getMethod($method, $path)
    {
        $resource = $this->getResource($path);
        try {
            return $resource->getMethod($method);
        } catch (Exception $exception) {
            throw new ValidatorSchemaException(sprintf('Schema for %s %s was not found in API definition', strtoupper($method), $path));
        }
    }