Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
TaxAdjustment.php
Go to the documentation of this file.
1 <?php
8 
12 
17 {
23  protected $weeeHelper;
24 
32  public function __construct(
33  Template\Context $context,
35  \Magento\Tax\Helper\Data $helper,
36  \Magento\Weee\Helper\Data $weeeHelper,
37  array $data = []
38  ) {
39  $this->weeeHelper = $weeeHelper;
40  parent::__construct($context, $priceCurrency, $helper, $data);
41  }
42 
48  public function getDefaultExclusions()
49  {
50  $exclusions = parent::getDefaultExclusions();
52 
53  // Determine if the Weee amount should be excluded from the price
56  }
57 
58  return $exclusions;
59  }
60 
68  protected function typeOfDisplay($compareTo = null, $store = null)
69  {
70  return $this->weeeHelper->typeOfDisplay($compareTo, $this->getZone(), $store);
71  }
72 }
const DISPLAY_EXCL
Definition: Tax.php:40
$helper
Definition: iframe.phtml:13
__construct(Template\Context $context, PriceCurrencyInterface $priceCurrency, \Magento\Tax\Helper\Data $helper, \Magento\Weee\Helper\Data $weeeHelper, array $data=[])
const DISPLAY_EXCL_DESCR_INCL
Definition: Tax.php:35
typeOfDisplay($compareTo=null, $store=null)