DefinitionInterface.php 941 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /**
  3. * Object Manager class definition interface
  4. *
  5. * Copyright © Magento, Inc. All rights reserved.
  6. * See COPYING.txt for license details.
  7. */
  8. namespace Magento\Framework\ObjectManager;
  9. /**
  10. * Interface \Magento\Framework\ObjectManager\DefinitionInterface
  11. *
  12. */
  13. interface DefinitionInterface
  14. {
  15. /**
  16. * Get list of method parameters
  17. *
  18. * Retrieve an ordered list of constructor parameters.
  19. * Each value is an array with following entries:
  20. *
  21. * array(
  22. * 0, // string: Parameter name
  23. * 1, // string|null: Parameter type
  24. * 2, // bool: whether this param is required
  25. * 3, // mixed: default value
  26. * );
  27. *
  28. * @param string $className
  29. * @return array|null
  30. */
  31. public function getParameters($className);
  32. /**
  33. * Retrieve list of all classes covered with definitions
  34. *
  35. * @return array
  36. */
  37. public function getClasses();
  38. }