src/FS/File/PHP/Parser/Array.php
private function parseClass( $data, $matches, &$openBlocks )
	{
		$data['abstract']	= (bool) $matches[1];
		$data['final']		= (bool) $matches[2];
		$data['type']		= $matches[3];
		$data['name']		= $matches[4];
		$data['extends']	= isset( $matches[5] ) ? $matches[6] : NULL;
		if( isset( $matches[7] ) )
			foreach( array_slice( $matches, 8 ) as $match )
				if( trim( $match ) && !preg_match( "@^,|{@", trim( $match ) ) )
					$data['implements'][]	= trim( $match );
		if( $openBlocks )
			$this->overwriteCodeDataWithDocData( $data, array_pop( $openBlocks ) );
		return $data;
	}
private function parseClass( $data, $matches, &$openBlocks )
	{
		$data['abstract']	= (bool) $matches[1];
		$data['final']		= (bool) $matches[2];
		$data['type']		= $matches[3];
		$data['name']		= $matches[4];
		$data['extends']	= isset( $matches[5] ) ? $matches[6] : NULL;
		if( isset( $matches[7] ) )
			foreach( array_slice( $matches, 8 ) as $match )
				if( trim( $match ) && !preg_match( "@^,|{@", trim( $match ) ) )
					$data['implements'][]	= trim( $match );
		if( $openBlocks )
			$this->overwriteCodeDataWithDocData( $data, array_pop( $openBlocks ) );
		return $data;
	}
private function parseClass ( $ data , $ matches , & $ openBlocks ) { $ data [ 'abstract' ] = ( bool ) $ matches [ 1 ] ; $ data [ 'final' ] = ( bool ) $ matches [ 2 ] ; $ data [ 'type' ] = $ matches [ 3 ] ; $ data [ 'name' ] = $ matches [ 4 ] ; $ data [ 'extends' ] = isset ( $ matches [ 5 ] ) ? $ matches [ 6 ] : NULL ; if ( isset ( $ matches [ 7 ] ) ) foreach ( array_slice ( $ matches , 8 ) as $ match ) if ( trim ( $ match ) && ! preg_match ( "@^,|{@" , trim ( $ match ) ) ) $ data [ 'implements' ] [ ] = trim ( $ match ) ; if ( $ openBlocks ) $ this -> overwriteCodeDataWithDocData ( $ data , array_pop ( $ openBlocks ) ) ; return $ data ; }
Parses a Class Signature and returns Array of collected Information.
@access		private
@param		array		$data			Class Data so far
@param		array		$matches		Matches of RegEx
@param		array		$openBlocks		Doc Blocks opened before
@return		array
Parses a Class Signature and returns Array of collected Information .