Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
25 | public function matchesMethod(ReflectionMethod $method, array $arguments): bool |
||
26 | { |
||
27 | $params = $method->getParameters(); |
||
28 | foreach ($params as $param) { |
||
29 | $attributes = $param->getAttributes(Inject::class); |
||
30 | if (isset($attributes[0])) { |
||
31 | return true; |
||
32 | } |
||
33 | } |
||
34 | |||
35 | return false; |
||
36 | } |
||
37 | } |
||
38 |