ListFactory.php 858 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Sales\Model\Status;
  7. /**
  8. * Class ListFactory
  9. * @internal
  10. */
  11. class ListFactory
  12. {
  13. /**
  14. * @var \Magento\Framework\ObjectManagerInterface
  15. */
  16. protected $_objectManager;
  17. /**
  18. * @param \Magento\Framework\ObjectManagerInterface $objectManager
  19. */
  20. public function __construct(\Magento\Framework\ObjectManagerInterface $objectManager)
  21. {
  22. $this->_objectManager = $objectManager;
  23. }
  24. /**
  25. * Create status list instance
  26. *
  27. * @param array $arguments
  28. * @return \Magento\Sales\Model\Status\ListStatus
  29. */
  30. public function create(array $arguments = [])
  31. {
  32. return $this->_objectManager->create(\Magento\Sales\Model\Status\ListStatus::class, $arguments);
  33. }
  34. }