private function parseValue(ValueInterface $obj, Node $node) {
		$value = $node instanceof Const_ ? $node->value : $node->default;
		if ($value !== null) {
			if ($this->isPrimitive($value)) {
				$obj->setValue($this->getPrimitiveValue($value));
			} else {
				$obj->setExpression($this->getExpression($value));
			}
		}
	}
private function parseValue(ValueInterface $obj, Node $node) {
		$value = $node instanceof Const_ ? $node->value : $node->default;
		if ($value !== null) {
			if ($this->isPrimitive($value)) {
				$obj->setValue($this->getPrimitiveValue($value));
			} else {
				$obj->setExpression($this->getExpression($value));
			}
		}
	}
private function parseValue ( ValueInterface $ obj , Node $ node ) { $ value = $ node instanceof Const_ ? $ node -> value : $ node -> default ; if ( $ value !== null ) { if ( $ this -> isPrimitive ( $ value ) ) { $ obj -> setValue ( $ this -> getPrimitiveValue ( $ value ) ) ; } else { $ obj -> setExpression ( $ this -> getExpression ( $ value ) ) ; } } }
Parses the value of a node into the model

@param ValueInterface $obj
@param Node $node
@return void
Parses the value of a node into the model