CheckoutFieldContainer.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. * Refer to LICENSE.txt distributed with the Temando Shipping module for notice of license
  4. */
  5. namespace Temando\Shipping\Model\Order;
  6. use Magento\Framework\DataObject;
  7. /**
  8. * Temando Order Checkout Field Container.
  9. *
  10. * This container is mainly introduced for consistency reasons. All order
  11. * subtypes are created through a simple type builder, so be the checkout fields.
  12. *
  13. * @see \Temando\Shipping\Model\Order\CheckoutFieldContainerInterfaceBuilder
  14. * @see \Temando\Shipping\Model\OrderInterfaceBuilder::setRateRequest
  15. * @see \Temando\Shipping\Model\OrderInterfaceBuilder::setOrder
  16. *
  17. * @package Temando\Shipping\Model
  18. * @author Christoph Aßmann <christoph.assmann@netresearch.de>
  19. * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
  20. * @link http://www.temando.com/
  21. */
  22. class CheckoutFieldContainer extends DataObject implements CheckoutFieldContainerInterface
  23. {
  24. /**
  25. * Obtain checkout fields for further processing during order placement.
  26. *
  27. * @return \Temando\Shipping\Model\Checkout\Attribute\CheckoutFieldInterface[]
  28. */
  29. public function getFields()
  30. {
  31. return $this->getData(self::FIELDS);
  32. }
  33. }