mirror of
https://github.com/bdnugget/magento2.git
synced 2026-11-07 09:17:35 +00:00
- removed @since 2.0.0 as it is a base release - updated version in @since and @deprecated tag taking into account all patch releases
97 lines
2.1 KiB
PHP
97 lines
2.1 KiB
PHP
<?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);
|
|
}
|
|
}
|