TaxTypeAwareTrait.php in Commerce Core 8.2
Namespace
Drupal\commerce_tax\ResolverFile
modules/tax/src/Resolver/TaxTypeAwareTrait.phpView source
<?php
namespace Drupal\commerce_tax\Resolver;
use Drupal\commerce_tax\Entity\TaxTypeInterface;
/**
* Provides a trait for implementing TaxTypeAwareInterface.
*/
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;
}
}
Traits
Name![]() |
Description |
---|---|
TaxTypeAwareTrait | Provides a trait for implementing TaxTypeAwareInterface. |