Esempio n. 1
0
 public function __clone()
 {
     $this->uri = clone $this->uri;
     parent::__clone();
 }
Esempio n. 2
0
 /**
  * Create a new Response, optionally with status code, headers, and a body.
  *
  * If provided, $headers MUST by an associative array with header field
  * names as (string) keys and lists of header field values (string[])
  * as values.
  *
  * If no StreamInterface is provided for $body, the instance will create
  * a NullStream instance for the message body.
  *
  * @see WellRESTed\Message\Message
  * @param int $statusCode
  * @param array $headers
  * @param StreamInterface $body
  */
 public function __construct($statusCode = 500, array $headers = null, StreamInterface $body = null)
 {
     parent::__construct($headers, $body);
     $this->statusCode = $statusCode;
     $this->reasonPhrase = $this->getDefaultReasonPhraseForStatusCode($statusCode);
 }