InterceptorInterface.php 596 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\Interception;
  7. /**
  8. * Interface for any class that is intercepting another Magento class.
  9. *
  10. * This interface exposes the parent method of the interception class, which allows the caller to bypass
  11. * the interception logic.
  12. */
  13. interface InterceptorInterface
  14. {
  15. /**
  16. * Calls parent class method
  17. *
  18. * @param string $method
  19. * @param array $arguments
  20. * @return mixed
  21. */
  22. public function ___callParent($method, array $arguments);
  23. }