ResponseFactoryInterface

interface Firstred\PostNL\Factory\ResponseFactoryInterface
Factory for PSR-7 Response.
This factory contract can be reused in Message and Server Message factories.

FOR BACKWARD COMPATIBLE REASONS - NOT COMPATIBLE WITH SYMFONY HTTP CLIENT

Summary

Methods

Methods

public Firstred\PostNL\Factory\ResponseFactoryInterface::createResponse($code=200, $reasonPhrase=\'\')
Creates a new PSR-7 response.
Parameters:
  • $code (int)

  • $reasonPhrase (string | null)

Returns:

\Psr\Http\Message\ResponseInterface