Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ShippingMethod.php
Go to the documentation of this file.
1 <?php
7 
9 
17 {
23  public function getCarrierCode()
24  {
25  return $this->_get(self::KEY_CARRIER_CODE);
26  }
27 
34  public function setCarrierCode($carrierCode)
35  {
36  return $this->setData(self::KEY_CARRIER_CODE, $carrierCode);
37  }
38 
44  public function getMethodCode()
45  {
46  return $this->_get(self::KEY_METHOD_CODE);
47  }
48 
55  public function setMethodCode($methodCode)
56  {
57  return $this->setData(self::KEY_METHOD_CODE, $methodCode);
58  }
59 
65  public function getCarrierTitle()
66  {
67  return $this->_get(self::KEY_CARRIER_TITLE);
68  }
69 
76  public function setCarrierTitle($carrierTitle)
77  {
78  return $this->setData(self::KEY_CARRIER_TITLE, $carrierTitle);
79  }
80 
86  public function getMethodTitle()
87  {
88  return $this->_get(self::KEY_METHOD_TITLE);
89  }
90 
97  public function setMethodTitle($methodTitle)
98  {
99  return $this->setData(self::KEY_METHOD_TITLE, $methodTitle);
100  }
101 
107  public function getAmount()
108  {
109  return $this->_get(self::KEY_SHIPPING_AMOUNT);
110  }
111 
118  public function setAmount($amount)
119  {
120  return $this->setData(self::KEY_SHIPPING_AMOUNT, $amount);
121  }
122 
128  public function getBaseAmount()
129  {
130  return $this->_get(self::KEY_BASE_SHIPPING_AMOUNT);
131  }
132 
139  public function setBaseAmount($baseAmount)
140  {
141  return $this->setData(self::KEY_BASE_SHIPPING_AMOUNT, $baseAmount);
142  }
143 
150  public function getAvailable()
151  {
152  return $this->_get(self::KEY_AVAILABLE);
153  }
154 
161  public function setAvailable($available)
162  {
163  return $this->setData(self::KEY_AVAILABLE, $available);
164  }
165 
171  public function getErrorMessage()
172  {
173  return $this->_get(self::KEY_ERROR_MESSAGE);
174  }
175 
182  public function setErrorMessage($errorMessage)
183  {
184  return $this->setData(self::KEY_ERROR_MESSAGE, $errorMessage);
185  }
186 
192  public function getExtensionAttributes()
193  {
194  return $this->_getExtensionAttributes();
195  }
196 
203  public function setExtensionAttributes(
204  \Magento\Quote\Api\Data\ShippingMethodExtensionInterface $extensionAttributes
205  ) {
206  return $this->_setExtensionAttributes($extensionAttributes);
207  }
208 
214  public function getPriceExclTax()
215  {
216  return $this->_get(self::KEY_PRICE_EXCL_TAX);
217  }
218 
225  public function setPriceExclTax($priceExclTax)
226  {
227  return $this->setData(self::KEY_PRICE_EXCL_TAX, $priceExclTax);
228  }
229 
235  public function getPriceInclTax()
236  {
237  return $this->_get(self::KEY_PRICE_INCL_TAX);
238  }
239 
246  public function setPriceInclTax($priceInclTax)
247  {
248  return $this->setData(self::KEY_PRICE_INCL_TAX, $priceInclTax);
249  }
250 }
_setExtensionAttributes(\Magento\Framework\Api\ExtensionAttributesInterface $extensionAttributes)
$baseAmount
Definition: tax.phtml:46
$amount
Definition: order.php:14
$extensionAttributes
Definition: payment.php:22
setExtensionAttributes(\Magento\Quote\Api\Data\ShippingMethodExtensionInterface $extensionAttributes)