Esempio n. 1
0
 /**
  * Creates a response.
  *
  * @param integer                                    $statusCode      The status code.
  * @param string                                     $reasonPhrase    The reason phrase.
  * @param string                                     $protocolVersion The protocol version.
  * @param array                                      $headers         The headers.
  * @param \Psr\Http\Message\StreamableInterface|null $body            The body.
  * @param array                                      $parameters      The parameters.
  */
 public function __construct($statusCode = 200, $reasonPhrase = 'OK', $protocolVersion = self::PROTOCOL_VERSION_1_1, array $headers = array(), StreamableInterface $body = null, array $parameters = array())
 {
     parent::__construct($protocolVersion, $headers, $body, $parameters);
     $this->statusCode = $statusCode;
     $this->reasonPhrase = $reasonPhrase;
 }
Esempio n. 2
0
 /**
  * {@inheritdoc}
  */
 public function setBody(StreamableInterface $body = null)
 {
     parent::setBody($body);
 }