Exemplo n.º 1
0
 public function __construct($method = 'GET', $uri = null)
 {
     $this->method = $method;
     $this->originalMethod = $method;
     $this->uri = $uri;
     $this->attributes = new Collection();
     parent::__construct();
 }
Exemplo n.º 2
0
 public function __construct($status = 200, $headers = null, Stream $body = null)
 {
     $this->status = $status;
     $this->headers = $headers ?: new Headers();
     if (is_string($body)) {
         $this->write($body);
     } else {
         $this->body = $body;
     }
     parent::__construct($headers);
 }