コード例 #1
0
ファイル: ServerRequest.php プロジェクト: nrackleff/capstone
 public function __construct($version = '1.1', array $headers = array(), StreamInterface $body = null, $requestTarget = '/', $method = 'GET', $uri = null, array $server = array(), array $cookies = array(), array $query = array(), array $uploadedFiles = array(), $data = null, array $attributes = array())
 {
     parent::__construct($version, $headers, $body);
     $this->requestTarget = $requestTarget;
     $this->method = $method;
     $this->uri = $uri;
     $this->server = $server;
     $this->cookies = $cookies;
     $this->query = $query;
     $this->uploadedFiles = $uploadedFiles;
     $this->data = $data;
     $this->attributes = $attributes;
 }
コード例 #2
0
ファイル: Response.php プロジェクト: nrackleff/capstone
 public function __construct($version = '1.1', array $headers = array(), StreamInterface $body = null, $statusCode = 200)
 {
     parent::__construct($version, $headers, $body);
     $this->statusCode = $statusCode;
 }