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

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

public getResponse ( string $method, string $path, integer $statusCode ) : Response
$method string
$path string
$statusCode integer
Результат Raml\Response
    public function getResponse($method, $path, $statusCode)
    {
        $responseSchema = $this->getMethod($method, $path)->getResponse($statusCode);
        if (null === $responseSchema) {
            throw new ValidatorSchemaException(sprintf('Schema for %s %s with status code %d was not found in API definition', strtoupper($method), $path, $statusCode));
        }
        return $responseSchema;
    }