Total Complexity | 2 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
13 | final class LogicalNotMatcher extends AbstractMatcher |
||
14 | { |
||
15 | /** |
||
16 | * {@inheritdoc} |
||
17 | */ |
||
18 | 2 | public function matchesClass(ReflectionClass $class, array $arguments): bool |
|
19 | { |
||
20 | 2 | [$matcher] = $arguments; |
|
21 | assert($matcher instanceof AbstractMatcher); |
||
22 | 2 | ||
23 | return ! $matcher->matchesClass($class, $matcher->getArguments()); |
||
24 | 2 | } |
|
25 | |||
26 | /** |
||
27 | * {@inheritdoc} |
||
28 | */ |
||
29 | public function matchesMethod(ReflectionMethod $method, array $arguments): bool |
||
35 | } |
||
36 | } |
||
37 |