FactoryInterface.php 804 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\ObjectManager;
  7. use Magento\Framework\ObjectManagerInterface;
  8. /**
  9. * Interface \Magento\Framework\ObjectManager\FactoryInterface
  10. *
  11. */
  12. interface FactoryInterface
  13. {
  14. /**
  15. * Create instance with call time arguments
  16. *
  17. * @param string $requestedType
  18. * @param array $arguments
  19. * @return object
  20. * @throws \LogicException
  21. * @throws \BadMethodCallException
  22. */
  23. public function create($requestedType, array $arguments = []);
  24. /**
  25. * Set object manager
  26. *
  27. * @param ObjectManagerInterface $objectManager
  28. *
  29. * @return void
  30. */
  31. public function setObjectManager(ObjectManagerInterface $objectManager);
  32. }