ReflectionInterface   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 0%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 2
c 2
b 0
f 0
lcom 0
cbo 3
dl 0
loc 17
rs 10
ccs 0
cts 4
cp 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A isSubclassOf() 0 8 2
1
<?php
2
3
namespace Benoth\StaticReflection\Reflection;
4
5
class ReflectionInterface extends ReflectionClassLike
6
{
7
    use Parts\InterfaceTrait;
8
    use Parts\ConstantTrait;
9
10
    /**
11
     * {@inheritdoc}
12
     */
13
    public function isSubclassOf($className)
14
    {
15
        if (!is_string($className)) {
16
            return false;
17
        }
18
19
        return $this->hasInterface($className);
20
    }
21
}
22