Passed
Push — parser-refactoring ( e758c6 )
by Luis
04:05
created

Definition   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 21
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
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
use PhUml\Graphviz\HasNodeIdentifier;
10
use PhUml\Graphviz\ObjectHashIdentifier;
11
12
class Definition implements HasNodeIdentifier
13
{
14
    use ObjectHashIdentifier;
15
16
    /** @var string */
17
    public $name;
18
19
    /** @var Method[] */
20
    public $functions;
21
22
    /** @var Definition */
23
    public $extends;
24
25
    /**
26
     * @param Method[] $methods
27
     */
28 171
    public function __construct(string $name, array $methods = [], Definition $extends = null)
29
    {
30 171
        $this->name = $name;
31 171
        $this->functions = $methods;
32 171
        $this->extends = $extends;
33 171
    }
34
}
35