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