Hook.php 499 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace IXR;
  3. use ReflectionMethod;
  4. /**
  5. * hook rpc call
  6. */
  7. interface Hook
  8. {
  9. /**
  10. * @param string $methodName
  11. * @param ReflectionMethod $reflectionMethod
  12. * @param array $parameters
  13. * @return mixed
  14. */
  15. public function beforeRpcCall(string $methodName, ReflectionMethod $reflectionMethod, array $parameters);
  16. /**
  17. * @param string $methodName
  18. * @param mixed $result
  19. */
  20. public function afterRpcCall(string $methodName, &$result): void;
  21. }