value = $value; } public function __toString() { return var_export( $this, true ); } public function getLength() { return count( $this->value ); } public function item( $i ) { return $this->value[$i]; } public function getName() { return '#nodelist'; } public function getNextSibling() { return false; } public function getChildren() { return false; } public function getFirstChild() { return false; } public function getChildrenOfType( $name ) { return false; } public function splitArg() { throw new MWException( __METHOD__ . ': not supported' ); } public function splitExt() { throw new MWException( __METHOD__ . ': not supported' ); } public function splitHeading() { throw new MWException( __METHOD__ . ': not supported' ); } }