# new TaxRule()

> Creates a new tax rule

- Source: `src/TaxRule.php#L35` <https://github.com/wagnerwagner/merx/blob/2.0.0-alpha.11/src/TaxRule.php#L35>

```php
new TaxRule(string $key, null|string $name = null, callable|float|null $rate = null)
```

## Parameters

| Name | Type | Default |
| --- | --- | --- |
| `$key` | `string` | `–` |
| `$name` | `null\|string` | `null` |
| `$rate` | `callable\|float\|null` | `null` |

## Parent class

`Wagnerwagner\Merx\TaxRule`
