src/FS/File/PHP/Parser/Regular.php
protected function parseMethod( ADT_PHP_Interface $parent, $matches )
	{
		$method	= new ADT_PHP_Method( $matches[6] );
		$method->setParent( $parent );
		$method->setLine( $this->lineNumber );
		if( !empty( $matches[4] ) )
			$method->setAccess( trim( $matches[4] ) );
		$method->setAbstract( (bool) $matches[1] );
		$method->setFinal( (bool) $matches[2] );
		$method->setStatic( (bool) $matches[3] || (bool) $matches[5] );

		$return		= new ADT_PHP_Return( "unknown" );
		$return->setParent( $method );
		$method->setReturn( $return );

		if( trim( $matches[7] ) )
		{
			$paramList	= array();
			foreach( explode( ",", $matches[7] ) as $param )
			{
				$param	 = trim( $param );
				if( !preg_match( $this->regexParam, $param, $matches ) )
					continue;
				$method->setParameter( $this->parseParameter( $method, $matches ) );
			}
		}
		if( $this->openBlocks )
		{
			$methodBlock	= array_pop( $this->openBlocks );
			$this->decorateCodeDataWithDocData( $method, $methodBlock );
			$this->openBlocks	= array();
		}
#		if( !$method->getAccess() )
#			$method->setAccess( 'public' );
		return $method;
	}
protected function parseMethod( ADT_PHP_Interface $parent, $matches )
	{
		$method	= new ADT_PHP_Method( $matches[6] );
		$method->setParent( $parent );
		$method->setLine( $this->lineNumber );
		if( !empty( $matches[4] ) )
			$method->setAccess( trim( $matches[4] ) );
		$method->setAbstract( (bool) $matches[1] );
		$method->setFinal( (bool) $matches[2] );
		$method->setStatic( (bool) $matches[3] || (bool) $matches[5] );

		$return		= new ADT_PHP_Return( "unknown" );
		$return->setParent( $method );
		$method->setReturn( $return );

		if( trim( $matches[7] ) )
		{
			$paramList	= array();
			foreach( explode( ",", $matches[7] ) as $param )
			{
				$param	 = trim( $param );
				if( !preg_match( $this->regexParam, $param, $matches ) )
					continue;
				$method->setParameter( $this->parseParameter( $method, $matches ) );
			}
		}
		if( $this->openBlocks )
		{
			$methodBlock	= array_pop( $this->openBlocks );
			$this->decorateCodeDataWithDocData( $method, $methodBlock );
			$this->openBlocks	= array();
		}
#		if( !$method->getAccess() )
#			$method->setAccess( 'public' );
		return $method;
	}
protected function parseMethod ( ADT_PHP_Interface $ parent , $ matches ) { $ method = new ADT_PHP_Method ( $ matches [ 6 ] ) ; $ method -> setParent ( $ parent ) ; $ method -> setLine ( $ this -> lineNumber ) ; if ( ! empty ( $ matches [ 4 ] ) ) $ method -> setAccess ( trim ( $ matches [ 4 ] ) ) ; $ method -> setAbstract ( ( bool ) $ matches [ 1 ] ) ; $ method -> setFinal ( ( bool ) $ matches [ 2 ] ) ; $ method -> setStatic ( ( bool ) $ matches [ 3 ] || ( bool ) $ matches [ 5 ] ) ; $ return = new ADT_PHP_Return ( "unknown" ) ; $ return -> setParent ( $ method ) ; $ method -> setReturn ( $ return ) ; if ( trim ( $ matches [ 7 ] ) ) { $ paramList = array ( ) ; foreach ( explode ( "," , $ matches [ 7 ] ) as $ param ) { $ param = trim ( $ param ) ; if ( ! preg_match ( $ this -> regexParam , $ param , $ matches ) ) continue ; $ method -> setParameter ( $ this -> parseParameter ( $ method , $ matches ) ) ; } } if ( $ this -> openBlocks ) { $ methodBlock = array_pop ( $ this -> openBlocks ) ; $ this -> decorateCodeDataWithDocData ( $ method , $ methodBlock ) ; $ this -> openBlocks = array ( ) ; } #		if( !$method->getAccess() ) #			$method->setAccess( 'public' ); return $ method ; }
Parses a Method Signature and returns collected Information.
@access		protected
@param		ADT_PHP_Interface	$parent			Parent Class Data Object
@param		array				$matches		Matches of RegEx
@return		ADT_PHP_Method
Parses a Method Signature and returns collected Information .