State.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. /**
  7. * Multishipping checkout state
  8. *
  9. * @author Magento Core Team <core@magentocommerce.com>
  10. */
  11. namespace Magento\Multishipping\Block\Checkout;
  12. class State extends \Magento\Framework\View\Element\Template
  13. {
  14. /**
  15. * @var \Magento\Multishipping\Model\Checkout\Type\Multishipping\State
  16. */
  17. protected $_multishippingState;
  18. /**
  19. * @param \Magento\Framework\View\Element\Template\Context $context
  20. * @param \Magento\Multishipping\Model\Checkout\Type\Multishipping\State $multishippingState
  21. * @param array $data
  22. */
  23. public function __construct(
  24. \Magento\Framework\View\Element\Template\Context $context,
  25. \Magento\Multishipping\Model\Checkout\Type\Multishipping\State $multishippingState,
  26. array $data = []
  27. ) {
  28. $this->_multishippingState = $multishippingState;
  29. parent::__construct($context, $data);
  30. }
  31. /**
  32. * @return array
  33. */
  34. public function getSteps()
  35. {
  36. return $this->_multishippingState->getSteps();
  37. }
  38. }