trait TaxTypeAwareTrait in Commerce Core 8.2
Provides a trait for implementing TaxTypeAwareInterface.
Hierarchy
- trait \Drupal\commerce_tax\Resolver\TaxTypeAwareTrait
1 file declares its use of TaxTypeAwareTrait
- TaxRateResolver.php in modules/
tax/ tests/ modules/ commerce_tax_test/ src/ Resolver/ TaxRateResolver.php
File
- modules/
tax/ src/ Resolver/ TaxTypeAwareTrait.php, line 10
Namespace
Drupal\commerce_tax\ResolverView source
trait TaxTypeAwareTrait {
/**
* The tax type.
*
* @var \Drupal\commerce_tax\Entity\TaxTypeInterface
*/
protected $taxType;
/**
* {@inheritdoc}
*/
public function setTaxType(TaxTypeInterface $tax_type) {
$this->taxType = $tax_type;
return $this;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TaxTypeAwareTrait:: |
protected | property | The tax type. | |
TaxTypeAwareTrait:: |
public | function |