Total Complexity | 2 |
Total Lines | 19 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class IsInterfaceMatcher extends AbstractMatcher |
||
14 | { |
||
15 | /** |
||
16 | * {@inheritdoc} |
||
17 | */ |
||
18 | public function matchesClass(ReflectionClass $class, array $arguments): bool |
||
19 | { |
||
20 | [$interface] = $arguments; |
||
21 | $interfaces = $class->getInterfaceNames(); |
||
22 | |||
23 | return in_array($interface, $interfaces); |
||
24 | } |
||
25 | |||
26 | /** |
||
27 | * {@inheritdoc} |
||
28 | */ |
||
29 | public function matchesMethod(ReflectionMethod $method, array $arguments): bool |
||
32 | } |
||
33 | } |
||
34 |