2012-05-09 14:26:29 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
2013-05-20 12:18:07 +02:00
|
|
|
* A BeforeCallAspect is run before a method is executed.
|
2012-05-09 14:26:29 +02:00
|
|
|
*
|
|
|
|
* This is a declared interface, but isn't actually required
|
2014-08-15 08:53:05 +02:00
|
|
|
* as PHP doesn't really care about types...
|
|
|
|
*
|
2012-06-20 23:59:16 +02:00
|
|
|
* @package framework
|
2012-05-09 14:26:29 +02:00
|
|
|
* @subpackage injector
|
|
|
|
*/
|
|
|
|
interface BeforeCallAspect {
|
2014-08-15 08:53:05 +02:00
|
|
|
|
2012-05-09 14:26:29 +02:00
|
|
|
/**
|
|
|
|
* Call this aspect before a method is executed
|
2014-08-15 08:53:05 +02:00
|
|
|
*
|
2012-05-09 14:26:29 +02:00
|
|
|
* @param object $proxied
|
2014-08-15 08:53:05 +02:00
|
|
|
* The object having the method called upon it.
|
2012-05-09 14:26:29 +02:00
|
|
|
* @param string $method
|
|
|
|
* The name of the method being called
|
|
|
|
* @param string $args
|
|
|
|
* The arguments that were passed to the method call
|
2013-12-05 02:21:31 +01:00
|
|
|
* @param mixed $alternateReturn
|
2014-08-15 08:53:05 +02:00
|
|
|
* An alternative return value that should be passed
|
2013-12-05 02:21:31 +01:00
|
|
|
* to the caller. Only has effect of beforeCall returns false
|
2012-05-09 14:26:29 +02:00
|
|
|
*/
|
2013-12-05 02:21:31 +01:00
|
|
|
public function beforeCall($proxied, $method, $args, &$alternateReturn);
|
2012-05-09 14:26:29 +02:00
|
|
|
}
|