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