| Total Complexity | 6 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class NodeSetValue extends Node |
||
| 12 | { |
||
| 13 | 3 | public function __construct(string $nodeString, int $line) |
|
| 14 | { |
||
| 15 | 3 | parent::__construct($nodeString, $line); |
|
| 16 | 3 | $v = substr(ltrim($nodeString), 1); |
|
| 17 | 3 | if (!empty($v)) { |
|
| 18 | 3 | $value = NodeFactory::get($v, $line); |
|
| 19 | 3 | $value->indent = null; |
|
| 20 | 3 | $this->add($value); |
|
| 21 | } |
||
| 22 | 3 | } |
|
| 23 | |||
| 24 | /** |
||
| 25 | * Builds a set value. |
||
| 26 | * |
||
| 27 | * @param Node $node The node of type YAML::SET_VALUE |
||
| 28 | * @param object $parent The parent (the document object or any previous object created through a mapping key) |
||
| 29 | */ |
||
| 30 | 1 | public function build(&$parent = null) |
|
| 35 | 1 | } |
|
| 36 | |||
| 37 | 1 | public function isAwaitingChild(Node $node):bool |
|
| 40 | } |
||
| 41 | } |