/** * 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(); }
/** * 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(); }