PHP Class TheSeer\Autoload\Parser

Author: Arne Blankerts ([email protected])
Inheritance: implements TheSeer\Autoload\ParserInterface
Show file Open project: theseer/autoload Class Usage Examples

Public Methods

Method Description
__construct ( $caseInsensitive = true )
parse ( TheSeer\Autoload\SourceFile $source ) : TheSeer\Autoload\ParseResult Parse a given file for defintions of classes, traits and interfaces

Private Methods

Method Description
getTokensTill ( $start, $list )
parseUseAsImport ( $stack )
parseUseOfTrait ( $stackSize, $stack )
processBracketClose ( $pos )
processBracketOpen ( $pos )
processClass ( $pos )
processInterface ( $pos )
processNamespace ( $pos )
processUse ( $pos )
registerUnit ( $name, $type )
resolveDependencyName ( $name )

Method Details

__construct() public method

public __construct ( $caseInsensitive = true )

parse() public method

Parse a given file for defintions of classes, traits and interfaces
public parse ( TheSeer\Autoload\SourceFile $source ) : TheSeer\Autoload\ParseResult
$source TheSeer\Autoload\SourceFile file to process
return TheSeer\Autoload\ParseResult