DefinitionInterface.php 596 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * Plugin method definitions. Provide the list of interception methods in specified plugin.
  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\DefinitionInterface
  11. *
  12. */
  13. interface DefinitionInterface
  14. {
  15. const LISTENER_BEFORE = 1;
  16. const LISTENER_AROUND = 2;
  17. const LISTENER_AFTER = 4;
  18. /**
  19. * Retrieve list of methods
  20. *
  21. * @param string $type
  22. * @return string[]
  23. */
  24. public function getMethodList($type);
  25. }