Exemplo n.º 1
0
 /**
  * @param integer $code
  * @param array $headers
  * @param string $body
  */
 public function __construct($code = null, array $headers = array(), $body = null)
 {
     parent::__construct($headers, $body);
     $this->code = $code;
 }
Exemplo n.º 2
0
 /**
  * @param \PSX\Uri $uri
  * @param string $method
  * @param array $headers
  * @param string $body
  */
 public function __construct(Uri $uri, $method, array $headers = array(), $body = null)
 {
     parent::__construct($headers, $body);
     $this->uri = $uri;
     $this->method = $method;
 }