_title = $title; $this->_message = $message; $this->_type = in_array($type, ['alert', 'error', 'success', 'info']) ? $type : 'alert'; } protected function html_content() { echo '
', $this->_message, '