public function __construct(NodeData $nodeData, $name, $value) { $this->nodeData = $nodeData; $this->name = $name; $this->value = $value; }