AliasFactory.php 786 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. declare(strict_types=1);
  7. namespace Magento\InventoryMultiDimensionalIndexerApi\Model;
  8. use Magento\Framework\ObjectManagerInterface;
  9. /**
  10. * Alias Factory
  11. *
  12. * @api
  13. */
  14. class AliasFactory
  15. {
  16. /**
  17. * @var ObjectManagerInterface
  18. */
  19. private $objectManager;
  20. /**
  21. * @param ObjectManagerInterface $objectManager
  22. */
  23. public function __construct(ObjectManagerInterface $objectManager)
  24. {
  25. $this->objectManager = $objectManager;
  26. }
  27. /**
  28. * @param array $arguments
  29. * @return Alias
  30. */
  31. public function create(array $arguments = []): Alias
  32. {
  33. return $this->objectManager->create(Alias::class, $arguments);
  34. }
  35. }