123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\Checkout\Model;
- use Magento\Framework\Model\AbstractExtensibleModel;
- use Magento\Checkout\Api\Data\ShippingInformationInterface;
- /**
- * @codeCoverageIgnoreStart
- */
- class ShippingInformation extends AbstractExtensibleModel implements ShippingInformationInterface
- {
- /**
- * {@inheritdoc}
- */
- public function getShippingAddress()
- {
- return $this->getData(self::SHIPPING_ADDRESS);
- }
- /**
- * {@inheritdoc}
- */
- public function setShippingAddress(\Magento\Quote\Api\Data\AddressInterface $address)
- {
- return $this->setData(self::SHIPPING_ADDRESS, $address);
- }
- /**
- * {@inheritdoc}
- */
- public function getBillingAddress()
- {
- return $this->getData(self::BILLING_ADDRESS);
- }
- /**
- * {@inheritdoc}
- */
- public function setBillingAddress(\Magento\Quote\Api\Data\AddressInterface $address)
- {
- return $this->setData(self::BILLING_ADDRESS, $address);
- }
- /**
- * {@inheritdoc}
- */
- public function getShippingMethodCode()
- {
- return $this->getData(self::SHIPPING_METHOD_CODE);
- }
- /**
- * {@inheritdoc}
- */
- public function setShippingMethodCode($code)
- {
- return $this->setData(self::SHIPPING_METHOD_CODE, $code);
- }
- /**
- * {@inheritdoc}
- */
- public function getShippingCarrierCode()
- {
- return $this->getData(self::SHIPPING_CARRIER_CODE);
- }
- /**
- * {@inheritdoc}
- */
- public function setShippingCarrierCode($code)
- {
- return $this->setData(self::SHIPPING_CARRIER_CODE, $code);
- }
- /**
- * {@inheritdoc}
- */
- public function getExtensionAttributes()
- {
- return $this->_getExtensionAttributes();
- }
- /**
- * {@inheritdoc}
- */
- public function setExtensionAttributes(
- \Magento\Checkout\Api\Data\ShippingInformationExtensionInterface $extensionAttributes
- ) {
- return $this->_setExtensionAttributes($extensionAttributes);
- }
- }
|