public function __construct($title, $content, $params) { parent::__construct($title, $content); $this->params = $params; $this->type = $params['error_type']; }