Completed
Push — master ( b7052b...e758c6 )
by Luis
05:32 queued 02:56
created

InterfaceDefinition::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 3
dl 0
loc 5
ccs 4
cts 4
cp 1
crap 1
rs 9.4285
c 0
b 0
f 0
1
<?php
2
/**
3
 * PHP version 7.1
4
 *
5
 * This source file is subject to the license that is bundled with this package in the file LICENSE.
6
 */
7
namespace PhUml\Code;
8
9
class InterfaceDefinition extends Definition
10
{
11 12
    public function hasParent(): bool
12
    {
13 12
        return $this->extends !== null;
14
    }
15
}
16