ReflectionInterface::isSubclassOf()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 6

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 8
rs 9.4285
ccs 0
cts 4
cp 0
cc 2
eloc 4
nc 2
nop 1
crap 6
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