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)); } } }