Exemplo n.º 1
0
 public function __construct($body = '', $status = 200, $headers = array())
 {
     parent::__construct($body, $status, $headers);
     foreach ($this->messagesStatus as $key => $value) {
         $this->setMessageStatus($key, $value);
     }
 }
 function __construct($response)
 {
     parent::__construct();
     $this->status = $response->getStatusCode();
     $this->headers = $response->headers;
     $this->body = $response->body;
     $this->detect = new \Mobile_Detect();
 }
 public function __construct($status = 200, HeadersInterface $headers = null, StreamInterface $body = null)
 {
     parent::__construct($status, $headers, $body);
     $this->withHeader('Content-type', 'application/json');
 }
 public function __construct($body = '', $status = 200, $headers = array())
 {
     parent::__construct($body, $status, $headers);
     $this->parameters = array();
 }