Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ShippingInformation.php
Go to the documentation of this file.
1 <?php
6 namespace Magento\Checkout\Model;
7 
10 
15 {
19  public function getShippingAddress()
20  {
21  return $this->getData(self::SHIPPING_ADDRESS);
22  }
23 
28  {
29  return $this->setData(self::SHIPPING_ADDRESS, $address);
30  }
31 
35  public function getBillingAddress()
36  {
37  return $this->getData(self::BILLING_ADDRESS);
38  }
39 
44  {
45  return $this->setData(self::BILLING_ADDRESS, $address);
46  }
47 
51  public function getShippingMethodCode()
52  {
53  return $this->getData(self::SHIPPING_METHOD_CODE);
54  }
55 
59  public function setShippingMethodCode($code)
60  {
61  return $this->setData(self::SHIPPING_METHOD_CODE, $code);
62  }
63 
67  public function getShippingCarrierCode()
68  {
69  return $this->getData(self::SHIPPING_CARRIER_CODE);
70  }
71 
75  public function setShippingCarrierCode($code)
76  {
77  return $this->setData(self::SHIPPING_CARRIER_CODE, $code);
78  }
79 
83  public function getExtensionAttributes()
84  {
85  return $this->_getExtensionAttributes();
86  }
87 
91  public function setExtensionAttributes(
92  \Magento\Checkout\Api\Data\ShippingInformationExtensionInterface $extensionAttributes
93  ) {
94  return $this->_setExtensionAttributes($extensionAttributes);
95  }
96 }
_setExtensionAttributes(\Magento\Framework\Api\ExtensionAttributesInterface $extensionAttributes)
$address
Definition: customer.php:38
setExtensionAttributes(\Magento\Checkout\Api\Data\ShippingInformationExtensionInterface $extensionAttributes)
setBillingAddress(\Magento\Quote\Api\Data\AddressInterface $address)
setShippingAddress(\Magento\Quote\Api\Data\AddressInterface $address)
$code
Definition: info.phtml:12