Completed
Pull Request — master (#80)
by
unknown
03:32 queued 01:07
created

TypeHint   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
lcom 1
cbo 1
dl 0
loc 12
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 8 1
1
<?php
2
3
namespace Padawan\Domain\Project\Node;
4
5
class TypeHint extends Variable {
6
    public $startLine = 0;
7
8
    public static function create(Variable $variable, $startLine)
9
    {
10
        $th = new TypeHint($variable->getName());
11
        $th->setType($variable->getType());
12
        $th->startLine = $startLine;
13
14
        return $th;
15
    }
16
}
17