Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Shipping.php
Go to the documentation of this file.
1 <?php
7 
10 
12 {
16  public function getAddress()
17  {
18  return $this->_getData(self::KEY_ADDRESS);
19  }
20 
24  public function getMethod()
25  {
26  return $this->_getData(self::KEY_METHOD);
27  }
28 
32  public function getTotal()
33  {
34  return $this->_getData(self::KEY_TOTAL);
35  }
36 
41  {
42  return $this->setData(self::KEY_ADDRESS, $address);
43  }
44 
48  public function setMethod($method)
49  {
50  return $this->setData(self::KEY_METHOD, $method);
51  }
52 
56  public function setTotal(\Magento\Sales\Api\Data\TotalInterface $total)
57  {
58  return $this->setData(self::KEY_TOTAL, $total);
59  }
60 
64  public function getExtensionAttributes()
65  {
66  return $this->_getExtensionAttributes();
67  }
68 
72  public function setExtensionAttributes(
73  \Magento\Sales\Api\Data\ShippingExtensionInterface $extensionAttributes
74  ) {
75  return $this->_setExtensionAttributes($extensionAttributes);
76  }
77 }
setAddress(\Magento\Sales\Api\Data\OrderAddressInterface $address)
Definition: Shipping.php:40
_setExtensionAttributes(\Magento\Framework\Api\ExtensionAttributesInterface $extensionAttributes)
$address
Definition: customer.php:38
setTotal(\Magento\Sales\Api\Data\TotalInterface $total)
Definition: Shipping.php:56
$method
Definition: info.phtml:13
setExtensionAttributes(\Magento\Sales\Api\Data\ShippingExtensionInterface $extensionAttributes)
Definition: Shipping.php:72