public __construct ( $body = 'php://memory', integer $status = 200, array $headers = [] ) | ||
$status | integer | Status code for the response, if any. |
$headers | array | Headers for the response, if any. |
/** * @param string|resource|\Psr\Http\Message\StreamableInterface $body The response body. * @param integer $status The response status code. * @param array $headers The response headers. * @param array $parameters The response parameters. */ public function __construct($body = 'php://memory', $status = 200, array $headers = array(), array $parameters = array()) { parent::__construct($body, $status, $headers); $this->parameters = $parameters; }