src/ADT/Tree/Node.php
public function addChild( $name, $child )
	{
		if( isset( $this->children[$name] ) )
			throw new InvalidArgumentException( 'A Child with Name "'.$name.'" is already existing.' );
		$this->children[$name] = $child;
	}
public function addChild( $name, $child )
	{
		if( isset( $this->children[$name] ) )
			throw new InvalidArgumentException( 'A Child with Name "'.$name.'" is already existing.' );
		$this->children[$name] = $child;
	}
public function addChild ( $ name , $ child ) { if ( isset ( $ this -> children [ $ name ] ) ) throw new InvalidArgumentException ( 'A Child with Name "' . $ name . '" is already existing.' ) ; $ this -> children [ $ name ] = $ child ; }
Adds a child to Tree.
@access		public
@param		string		$name		Child name
@param		mixed		$child		Child to add
@return		void
Adds a child to Tree .