You are here

trait TaxTypeAwareTrait in Commerce Core 8.2

Provides a trait for implementing TaxTypeAwareInterface.

Hierarchy

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\Resolver
View 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