public function getTypeBadge()
    {
        switch ($this->type) {
            case self::TYPE_INFO:
                return '<span class="badge badge-info">info</span>';
            case self::TYPE_WARNING:
                return '<span class="badge badge-warning">Warning</span>';
            case self::TYPE_ERROR:
                return '<span class="badge badge-danger">Error</span>';
            case self::TYPE_SUCCESS:
                return '<span class="badge badge-success">success</span>';
        }
    }