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