1 | <?php |
||
25 | class DynamicInvocationMatcherInterceptor implements Interceptor |
||
26 | { |
||
27 | /** |
||
28 | * Instance of pointcut to dynamically match joinpoints with args |
||
29 | * |
||
30 | * @var PointFilter |
||
31 | */ |
||
32 | protected $pointFilter; |
||
33 | |||
34 | /** |
||
35 | * Overloaded property for storing instance of Interceptor |
||
36 | * |
||
37 | * @var Interceptor |
||
38 | */ |
||
39 | protected $interceptor; |
||
40 | |||
41 | /** |
||
42 | * Dynamic matcher constructor |
||
43 | * |
||
44 | * @param PointFilter $pointFilter Instance of dynamic matcher |
||
45 | * @param Interceptor $interceptor Instance of interceptor to invoke |
||
46 | */ |
||
47 | public function __construct(PointFilter $pointFilter, Interceptor $interceptor) |
||
52 | |||
53 | /** |
||
54 | * Method invoker |
||
55 | * |
||
56 | * @param Joinpoint $joinpoint the method invocation joinpoint |
||
57 | * |
||
58 | * @return mixed the result of the call to {@see Joinpoint->proceed()} |
||
59 | */ |
||
60 | final public function invoke(Joinpoint $joinpoint) |
||
73 | } |
||
74 |