Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AppliedTax.php
Go to the documentation of this file.
1 <?php
7 
10 
15 {
19  const KEY_TAX_RATE_KEY = 'tax_rate_key';
20  const KEY_PERCENT = 'percent';
21  const KEY_AMOUNT = 'amount';
22  const KEY_RATES = 'rates';
28  public function getTaxRateKey()
29  {
30  return $this->getData(self::KEY_TAX_RATE_KEY);
31  }
32 
36  public function getPercent()
37  {
38  return $this->getData(self::KEY_PERCENT);
39  }
40 
44  public function getAmount()
45  {
46  return $this->getData(self::KEY_AMOUNT);
47  }
48 
52  public function getRates()
53  {
54  return $this->getData(self::KEY_RATES);
55  }
56 
63  public function setTaxRateKey($taxRateKey)
64  {
65  return $this->setData(self::KEY_TAX_RATE_KEY, $taxRateKey);
66  }
67 
74  public function setPercent($percent)
75  {
76  return $this->setData(self::KEY_PERCENT, $percent);
77  }
78 
85  public function setAmount($amount)
86  {
87  return $this->setData(self::KEY_AMOUNT, $amount);
88  }
89 
96  public function setRates(array $rates = null)
97  {
98  return $this->setData(self::KEY_RATES, $rates);
99  }
100 
106  public function getExtensionAttributes()
107  {
108  return $this->_getExtensionAttributes();
109  }
110 
117  public function setExtensionAttributes(\Magento\Tax\Api\Data\AppliedTaxExtensionInterface $extensionAttributes)
118  {
119  return $this->_setExtensionAttributes($extensionAttributes);
120  }
121 }
if($this->helper('Magento\Tax\Helper\Data') ->displayFullSummary()) foreach( $block->getTotal() ->getFullInfo() as $info)(isset($info['hidden']) && $info['hidden']) $percent
Definition: tax.phtml:33
_setExtensionAttributes(\Magento\Framework\Api\ExtensionAttributesInterface $extensionAttributes)
$rates
Definition: tax.phtml:35
$amount
Definition: order.php:14
setExtensionAttributes(\Magento\Tax\Api\Data\AppliedTaxExtensionInterface $extensionAttributes)
Definition: AppliedTax.php:117