protected function type($type)
    {
        $type = strtolower($type);
        switch ($type) {
                case 'success':
                    $type = 'success';
                    break;
                case 'error':
                    $type = 'danger';
                    break;
                case 'information':
                    $type = 'info';
                    break;
                case 'warning':
                    $type = 'warning';
                    break;
                case 'primary':
                    $type = 'primary';
                    break;
                case 'secondary':
                    $type = 'secondary';
                    break;
                case 'dark':
                    $type = 'Dark';
                    break;
                default:
                    $type = 'light';
                    break;
            }
        $this->type = $type;
    }
protected function type($type)
    {
        $type = strtolower($type);
        switch ($type) {
                case 'success':
                    $type = 'success';
                    break;
                case 'error':
                    $type = 'danger';
                    break;
                case 'information':
                    $type = 'info';
                    break;
                case 'warning':
                    $type = 'warning';
                    break;
                case 'primary':
                    $type = 'primary';
                    break;
                case 'secondary':
                    $type = 'secondary';
                    break;
                case 'dark':
                    $type = 'Dark';
                    break;
                default:
                    $type = 'light';
                    break;
            }
        $this->type = $type;
    }
protected function type ( $ type ) { $ type = strtolower ( $ type ) ; switch ( $ type ) { case 'success' : $ type = 'success' ; break ; case 'error' : $ type = 'danger' ; break ; case 'information' : $ type = 'info' ; break ; case 'warning' : $ type = 'warning' ; break ; case 'primary' : $ type = 'primary' ; break ; case 'secondary' : $ type = 'secondary' ; break ; case 'dark' : $ type = 'Dark' ; break ; default : $ type = 'light' ; break ; } $ this -> type = $ type ; }
Set the type of message.

@param $type => alert type

@since 1.0.0

@return void
Set the type of message .