Exemplo n.º 1
0
 /**
  * Constructor
  *
  * @param integer $statusCode
  * @param integer $code
  * @param string  $message
  * @param array   $headers
  */
 public function __construct($statusCode = 500, $code = 0, $message = '', array $headers = [])
 {
     $this->statusCode = $statusCode;
     $this->headers = $headers;
     parent::__construct($code, $message);
 }
Exemplo n.º 2
0
 /**
  * Constructor
  *
  * @param integer $code
  * @param string  $message
  */
 public function __construct($code = 0, $message = '')
 {
     parent::__construct($message, $code);
 }