# WHMCS\Notification\Rule

`Class` · extends `AbstractModel`

A notification rule.

## Methods

### createTable

```php
public function createTable($drop = false)
```

Create table schema

**Parameters**

| Type | Name | Description |
|  --- | --- | --- |
| `bool|false` | `$drop` | Drop pre-existing tables |


### triggerNotification

```php
public function triggerNotification(Notification $notification)
```

### rebuildCache

```php
public static function rebuildCache()
```

Rebuild rule cache.

### getCache

```php
public static function getCache()
```

Get cached rules.

**Returns** `array`

### scopeActive

```php
public function scopeActive(Builder $query)
```

The filter for the Active scope

**Parameters**

| Type | Name | Description |
|  --- | --- | --- |
| `Builder` | `$query` |  |


**Returns** `Builder`