ClassReaderInterface.php 788 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /**
  3. *
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. namespace Magento\Framework\Code\Reader;
  8. /**
  9. * Interface \Magento\Framework\Code\Reader\ClassReaderInterface
  10. *
  11. */
  12. interface ClassReaderInterface
  13. {
  14. /**
  15. * Read class constructor signature
  16. *
  17. * @param string $className
  18. * @return array|null
  19. * @throws \ReflectionException
  20. */
  21. public function getConstructor($className);
  22. /**
  23. * Retrieve parent relation information for type in a following format
  24. * array(
  25. * 'Parent_Class_Name',
  26. * 'Interface_1',
  27. * 'Interface_2',
  28. * ...
  29. * )
  30. *
  31. * @param string $className
  32. * @return string[]
  33. */
  34. public function getParents($className);
  35. }