nodes; } function setNodes($pNodes) { $this->nodes = $pNodes; } function addNode($node) { $this->nodes[$node->getName()] = $node; } function removeNode($node) { $this->nodes[$node->getName()] = NULL; } function getNodeByName($nodeName) { $node = NULL; if(array_key_exists($nodeName, $this->nodes)) { $node = $this->nodes[$nodeName]; } return $node; } } ?>