Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
18 | 4 | public function matchesClass(ReflectionClass $class, array $arguments): bool |
|
19 | { |
||
20 | 4 | foreach ($arguments as $matcher) { |
|
21 | assert($matcher instanceof AbstractMatcher); |
||
22 | 4 | $isMatch = $matcher->matchesClass($class, $matcher->getArguments()); |
|
23 | 4 | if ($isMatch === true) { |
|
24 | 4 | return true; |
|
25 | } |
||
26 | } |
||
27 | |||
28 | 1 | return false; |
|
29 | } |
||
47 |