Info.php 799 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Checkout\Block\Cart\Additional;
  7. /**
  8. * @api
  9. * @since 100.0.2
  10. */
  11. class Info extends \Magento\Framework\View\Element\Template
  12. {
  13. /**
  14. * @var \Magento\Quote\Model\Quote\Item\AbstractItem
  15. */
  16. protected $_item;
  17. /**
  18. * @param \Magento\Quote\Model\Quote\Item\AbstractItem $item
  19. * @return $this
  20. * @codeCoverageIgnore
  21. */
  22. public function setItem(\Magento\Quote\Model\Quote\Item\AbstractItem $item)
  23. {
  24. $this->_item = $item;
  25. return $this;
  26. }
  27. /**
  28. * @return \Magento\Quote\Model\Quote\Item\AbstractItem
  29. * @codeCoverageIgnore
  30. */
  31. public function getItem()
  32. {
  33. return $this->_item;
  34. }
  35. }