src/FS/File/PHP/Parser/Regular.php
protected function parseFunction( ADT_PHP_File $parent, $matches )
	{
		$function	= new ADT_PHP_Function( $matches[6] );
		$function->setParent( $parent );
		$function->setLine( $this->lineNumber );

		if( trim( $matches[7] ) )
		{
			$paramList	= array();
			foreach( explode( ",", $matches[7] ) as $param )
			{
				$param	 = trim( $param );
				if( !preg_match( $this->regexParam, $param, $matches ) )
					continue;
				$function->setParameter( $this->parseParameter( $function, $matches ) );
			}
		}
		if( $this->openBlocks )
		{
			$methodBlock	= array_pop( $this->openBlocks );
			$this->decorateCodeDataWithDocData( $function, $methodBlock );
			$this->openBlocks	= array();
		}
		return $function;
	}
protected function parseFunction( ADT_PHP_File $parent, $matches )
	{
		$function	= new ADT_PHP_Function( $matches[6] );
		$function->setParent( $parent );
		$function->setLine( $this->lineNumber );

		if( trim( $matches[7] ) )
		{
			$paramList	= array();
			foreach( explode( ",", $matches[7] ) as $param )
			{
				$param	 = trim( $param );
				if( !preg_match( $this->regexParam, $param, $matches ) )
					continue;
				$function->setParameter( $this->parseParameter( $function, $matches ) );
			}
		}
		if( $this->openBlocks )
		{
			$methodBlock	= array_pop( $this->openBlocks );
			$this->decorateCodeDataWithDocData( $function, $methodBlock );
			$this->openBlocks	= array();
		}
		return $function;
	}
protected function parseFunction ( ADT_PHP_File $ parent , $ matches ) { $ function = new ADT_PHP_Function ( $ matches [ 6 ] ) ; $ function -> setParent ( $ parent ) ; $ function -> setLine ( $ this -> lineNumber ) ; if ( trim ( $ matches [ 7 ] ) ) { $ paramList = array ( ) ; foreach ( explode ( "," , $ matches [ 7 ] ) as $ param ) { $ param = trim ( $ param ) ; if ( ! preg_match ( $ this -> regexParam , $ param , $ matches ) ) continue ; $ function -> setParameter ( $ this -> parseParameter ( $ function , $ matches ) ) ; } } if ( $ this -> openBlocks ) { $ methodBlock = array_pop ( $ this -> openBlocks ) ; $ this -> decorateCodeDataWithDocData ( $ function , $ methodBlock ) ; $ this -> openBlocks = array ( ) ; } return $ function ; }
Parses a Function Signature and returns collected Information.
@access		protected
@param		ADT_PHP_File		$parent			Parent File Data Object
@param		array				$matches		Matches of RegEx
@return		ADT_PHP_Function
Parses a Function Signature and returns collected Information .