$taxRules->getRuleByKey()
Gets the tax rule by its key
$taxRules->getRuleByKey(null|string $key): null|TaxRule
Parameters
| Name | Type | Default |
|---|---|---|
$key |
null or string |
- |
Return type
null or TaxRule
The tax rule or null if not found