# WHMCS\Notification\Contracts\NotificationInterface

`Interface`

Interface that describes a notification

## Methods

### getTitle

```php
public function getTitle()
```

**Returns** `string`

### setTitle

```php
public function setTitle($title)
```

**Parameters**

| Type | Name | Description |
|  --- | --- | --- |
| `string` | `$title` |  |


**Returns** `static`

### getMessage

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

**Returns** `string`

### setMessage

```php
public function setMessage($message)
```

**Parameters**

| Type | Name | Description |
|  --- | --- | --- |
| `string` | `$message` |  |


**Returns** `static`

### getUrl

```php
public function getUrl()
```

**Returns** `string`

### setUrl

```php
public function setUrl($url)
```

**Parameters**

| Type | Name | Description |
|  --- | --- | --- |
| `string` | `$url` |  |


**Returns** `static`

### getAttributes

```php
public function getAttributes()
```

**Returns** `NotificationAttributeInterface[]`

### setAttributes

```php
public function setAttributes($attributes)
```

**Parameters**

| Type | Name | Description |
|  --- | --- | --- |
| `NotificationAttributeInterface[]` | `$attributes` |  |


**Returns** `static`

### addAttribute

```php
public function addAttribute(NotificationAttributeInterface $attribute)
```

**Parameters**

| Type | Name | Description |
|  --- | --- | --- |
| `NotificationAttributeInterface` | `$attribute` |  |


**Returns** `static`