Beispiel #1
0
 /**
  * Constructor
  *
  * @param   int     HTTP code
  * @param   string  HTTP content
  * @return  void
  */
 function __construct($code = 0, $content = '')
 {
     $this->headers = new Collection();
     $this->content = $content;
     empty($code) or $this->setCode($code);
     parent::__construct();
 }
Beispiel #2
0
 /**
  * Constructor
  *
  * @param   string  CLI output type
  * @param   string  CLI content
  * @return  void
  */
 function __construct($type = 'OUT', $content = '')
 {
     $this->type = $type;
     $this->content = $content;
     parent::__construct();
 }