final class ResponseFactory implements ResponseFactoryInterface (View source)

Methods

__construct(ResponseFactoryInterface $responseFactory)

No description

createResponse(int $code = StatusCodeInterface::STATUS_OK, string $reasonPhrase = '')

No description

static ResponseFactory
create()

No description

Details

__construct(ResponseFactoryInterface $responseFactory)

No description

Parameters

ResponseFactoryInterface $responseFactory

Response createResponse(int $code = StatusCodeInterface::STATUS_OK, string $reasonPhrase = '')

No description

Parameters

int $code
string $reasonPhrase

Return Value

Response

static ResponseFactory create()

No description

Return Value

ResponseFactory

Exceptions

RuntimeException