Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
36 | public function parse(Node $node, NodeInterface $parent): NodeInterface |
||
37 | { |
||
38 | /** |
||
39 | * Overriding variable types. |
||
40 | * @var Node\Stmt\Trait_ $node The namespace node to parse. |
||
41 | * @var PhpFileModelInterface $parent The node which contains this namespace. |
||
42 | */ |
||
43 | $trait = new TraitModel(); |
||
44 | $trait->setName($node->name); |
||
|
|||
45 | |||
46 | $trait = $this->parseSubNodes($node->stmts, $trait); |
||
47 | |||
48 | $parent->addTrait($trait); |
||
49 | |||
50 | return $parent; |
||
51 | } |
||
53 |