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

TypeHint::create()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

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