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 namespace Magento\Quote\Model;
8 
10 
15 {
16  const ADDRESS = 'address';
17  const METHOD = 'method';
18 
22  public function getAddress()
23  {
24  return $this->getData(self::ADDRESS);
25  }
26 
30  public function setAddress(\Magento\Quote\Api\Data\AddressInterface $value)
31  {
32  $this->setData(self::ADDRESS, $value);
33  return $this;
34  }
35 
39  public function getMethod()
40  {
41  return $this->getData(self::METHOD);
42  }
43 
47  public function setMethod($value)
48  {
49  $this->setData(self::METHOD, $value);
50  return $this;
51  }
52 
56  public function getExtensionAttributes()
57  {
58  return $this->_getExtensionAttributes();
59  }
60 
64  public function setExtensionAttributes(\Magento\Quote\Api\Data\ShippingExtensionInterface $extensionAttributes)
65  {
66  return $this->_setExtensionAttributes($extensionAttributes);
67  }
68 }
_setExtensionAttributes(\Magento\Framework\Api\ExtensionAttributesInterface $extensionAttributes)
setAddress(\Magento\Quote\Api\Data\AddressInterface $value)
Definition: Shipping.php:30
$value
Definition: gender.phtml:16
setExtensionAttributes(\Magento\Quote\Api\Data\ShippingExtensionInterface $extensionAttributes)
Definition: Shipping.php:64