original_string: public function getNumItems($recursive = false)
  	{
  		if ($recursive)
  		{
  			$count = $this->numitems;
  
  			foreach ($this->getChildren() as $child)
  			{
  				$count = $count + $child->getNumItems(true);
  			}
  
  			return $count;
  		}
  
  		return $this->numitems;
  	}
code: public function getNumItems($recursive = false)
  	{
  		if ($recursive)
  		{
  			$count = $this->numitems;
  
  			foreach ($this->getChildren() as $child)
  			{
  				$count = $count + $child->getNumItems(true);
  			}
  
  			return $count;
  		}
  
  		return $this->numitems;
  	}
code_tokens: public function getNumItems ( $ recursive = false ) { if ( $ recursive ) { $ count = $ this -> numitems ; foreach ( $ this -> getChildren ( ) as $ child ) { $ count = $ count + $ child -> getNumItems ( true ) ; } return $ count ; } return $ this -> numitems ; }
docstring: Returns the number of items.
  
  @param   boolean  $recursive  If false number of children, if true number of descendants
  
  @return  integer  Number of children or descendants
  
  @since 11.1
docstring_tokens: Returns the number of items .