TotalsAdditionalData.php 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Quote\Model\Cart;
  7. use Magento\Quote\Api\Data\TotalsAdditionalDataInterface;
  8. use Magento\Framework\Model\AbstractExtensibleModel;
  9. /**
  10. * @inheritDoc
  11. */
  12. class TotalsAdditionalData extends AbstractExtensibleModel implements TotalsAdditionalDataInterface
  13. {
  14. /**
  15. * Retrieve existing extension attributes object or create a new one.
  16. *
  17. * @return \Magento\Quote\Api\Data\TotalsAdditionalDataExtensionInterface|null
  18. */
  19. public function getExtensionAttributes()
  20. {
  21. return $this->_getExtensionAttributes();
  22. }
  23. /**
  24. * Set an extension attributes object.
  25. *
  26. * @param \Magento\Quote\Api\Data\TotalsAdditionalDataExtensionInterface $extensionAttributes
  27. * @return void
  28. */
  29. public function setExtensionAttributes(
  30. \Magento\Quote\Api\Data\TotalsAdditionalDataExtensionInterface $extensionAttributes
  31. ) {
  32. $this->_setExtensionAttributes($extensionAttributes);
  33. }
  34. }