1 | <?php |
||
7 | final class ReflectiveMethodInvocation implements MethodInvocation |
||
8 | { |
||
9 | /** |
||
10 | * @var object |
||
11 | */ |
||
12 | private $object; |
||
13 | |||
14 | /** |
||
15 | * @var array|\ArrayObject |
||
16 | */ |
||
17 | private $arguments; |
||
18 | |||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | private $method; |
||
23 | |||
24 | /** |
||
25 | * @var MethodInterceptor[] |
||
26 | */ |
||
27 | private $interceptors; |
||
28 | |||
29 | /** |
||
30 | * @var callable |
||
31 | */ |
||
32 | private $callable; |
||
33 | |||
34 | /** |
||
35 | * @param object $object |
||
36 | * @param MethodInterceptor[] $interceptors |
||
37 | */ |
||
38 | public function __construct( |
||
50 | |||
51 | /** |
||
52 | * {@inheritdoc} |
||
53 | * |
||
54 | * @throws \ReflectionException |
||
55 | */ |
||
56 | public function getMethod() : ReflectionMethod |
||
71 | |||
72 | /** |
||
73 | * {@inheritdoc} |
||
74 | */ |
||
75 | public function getArguments() : \ArrayObject |
||
81 | |||
82 | /** |
||
83 | * {@inheritdoc} |
||
84 | * |
||
85 | * @throws \ReflectionException |
||
86 | */ |
||
87 | public function getNamedArguments() : \ArrayObject |
||
98 | |||
99 | /** |
||
100 | * {@inheritdoc} |
||
101 | */ |
||
102 | public function proceed() |
||
114 | |||
115 | /** |
||
116 | * {@inheritdoc} |
||
117 | */ |
||
118 | public function getThis() |
||
122 | |||
123 | private function getCallable($object, string $method) : callable |
||
127 | } |
||
128 |