Conditions | 3 |
Paths | 3 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
32 | 1 | public function matchesMethod(ReflectionMethod $method, array $arguments): bool |
|
33 | { |
||
34 | 1 | $isAnd = true; |
|
35 | 1 | foreach ($arguments as $matcher) { |
|
36 | assert($matcher instanceof AbstractMatcher); |
||
37 | 1 | $isAnd = $isAnd && $matcher->matchesMethod($method, $matcher->getArguments()); |
|
38 | } |
||
39 | |||
40 | 1 | return $isAnd; |
|
41 | } |
||
43 |