# WHMCS\User\Alert

`Class`

A user level alert

Alerts are intended to be displayed in the product as quick notifications
generated on the fly for WHMCS users.  Clients will be able to view alerts
in the client area from the notification widget in the top right corner.

## Methods

### __construct

```php
public function __construct($message, $severity = 'info', $link = null, $linkText = null)
```

Build a new user alert.

**Parameters**

| Type | Name | Description |
|  --- | --- | --- |
| `string` | `$message` |  |
| `string` | `$severity` |  |
| `string` | `$link` |  |
| `string` | `$linkText` |  |


### getMessage

```php
public function getMessage()
```

Retrieve an alert's message.

**Returns** `string`

### getSeverity

```php
public function getSeverity()
```

Retrieve an alert's severity.

**Returns** `string`

### getLink

```php
public function getLink()
```

Retrieve an optional link target to provide along with an alert.

**Returns** `string`

### getLinkText

```php
public function getLinkText()
```

Retrieve an optional link text to provide along with an alert.

**Returns** `string`