Skip to content

EmptyResponseFactory

  • Full name: \Qubus\Http\Factories\EmptyResponseFactory
  • This class is marked as final and can't be subclassed
  • This class is a Final class

Methods

create

Create an empty response with the given status code.

public static create(int $status = 204, array $headers = []): \Psr\Http\Message\ResponseInterface
  • This method is static.

Parameters:

Parameter Type Description
$status int Status code for the response, if any.
$headers array Headers for the response, if any.


Automatically generated on 2025-10-13