RelationsInterface.php 561 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\ObjectManager;
  7. /**
  8. * Interface \Magento\Framework\ObjectManager\RelationsInterface
  9. *
  10. */
  11. interface RelationsInterface
  12. {
  13. /**
  14. * Check whether requested type is available for read
  15. *
  16. * @param string $type
  17. * @return bool
  18. */
  19. public function has($type);
  20. /**
  21. * Retrieve list of parents
  22. *
  23. * @param string $type
  24. * @return array
  25. */
  26. public function getParents($type);
  27. }