Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 3 |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
16 | 4 | public function matchesClass(\ReflectionClass $class, array $arguments) |
|
17 | { |
||
18 | 4 | foreach ($arguments as $matcher) { |
|
19 | /* @var $matcher AbstractMatcher */ |
||
20 | 4 | $isMatch = $matcher->matchesClass($class, $matcher->getArguments()); |
|
21 | 4 | if ($isMatch === true) { |
|
22 | 3 | return true; |
|
23 | } |
||
24 | 2 | } |
|
25 | |||
26 | 1 | return false; |
|
27 | } |
||
28 | |||
45 |