Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2 |
Changes | 2 | ||
Bugs | 0 | Features | 2 |
1 | <?php |
||
29 | 1 | public function __construct($selector, self &$parent = null) |
|
30 | { |
||
31 | // Pointer to parent LESS Node |
||
32 | 1 | $this->parent = &$parent; |
|
33 | 1 | $this->selector = $selector; |
|
34 | |||
35 | // Add this node to parent |
||
36 | 1 | if (null !== $parent) { |
|
37 | // Store child by selector to avoid duplication |
||
38 | 1 | $parent->children[$this->selector] = $this; |
|
39 | 1 | } |
|
40 | 1 | } |
|
41 | |||
66 |