PluginListInterface.php 714 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /**
  3. * List of plugins configured in application
  4. *
  5. * Copyright © Magento, Inc. All rights reserved.
  6. * See COPYING.txt for license details.
  7. */
  8. namespace Magento\Framework\Interception;
  9. /**
  10. * Interface \Magento\Framework\Interception\PluginListInterface
  11. *
  12. */
  13. interface PluginListInterface
  14. {
  15. /**
  16. * Retrieve next plugins in chain
  17. *
  18. * @param string $type
  19. * @param string $method
  20. * @param string $code
  21. * @return array
  22. */
  23. public function getNext($type, $method, $code = null);
  24. /**
  25. * Retrieve plugin instance by code
  26. *
  27. * @param string $type
  28. * @param string $code
  29. * @return mixed
  30. */
  31. public function getPlugin($type, $code);
  32. }