/** * FileResponse constructor. * * @param Phoenix\Exceptions\BaseException $e * [optional] default null */ public function __construct(BaseException $e = null) { parent::__construct(Response::S200_OK, self::CONTENT_TYPE_FILE, self::CHARSET_FILE, $e); }
/** * HtmlResponse constructor. * * @param string $template_file * [optional] default null * @param Phoenix\Utils\TemplateData $template_data * [optional] default null * @param Phoenix\Exceptions\BaseException $e * [optional] default null */ public function __construct($template_file = null, TemplateData $template_data = null, BaseException $e = null) { parent::__construct(Response::S200_OK, self::CONTENT_TYPE_HTML, self::CHARSET_HTML, $e); $this->setTemplateData($template_data); $this->setTemplateFile($template_file); }