|
MediaWiki
master
|
Reads PHP code and returns the FQCN of every class defined within it. More...

Public Member Functions | |
| getClasses ($code) | |
Protected Member Functions | |
| implodeTokens () | |
| Returns the string representation of the tokens within the current expect sequence and resets the sequence. More... | |
| tryBeginExpect ($token) | |
| Determine if $token begins the next expect sequence. More... | |
| tryEndExpect ($token) | |
| Accepts the next token in an expect sequence. More... | |
Protected Attributes | |
| array | $classes |
| List of FQCN detected in this pass. More... | |
| string | $namespace = '' |
| Current namespace. More... | |
| array | $startToken |
| Token from token_get_all() that started an expect sequence. More... | |
| array | $tokens |
| List of tokens that are members of the current expect sequence. More... | |
Reads PHP code and returns the FQCN of every class defined within it.
Definition at line 247 of file AutoloadGenerator.php.
| ClassCollector::getClasses | ( | $code | ) |
Definition at line 273 of file AutoloadGenerator.php.
References $code, as, classes, tryBeginExpect(), and tryEndExpect().
|
protected |
Returns the string representation of the tokens within the current expect sequence and resets the sequence.
Definition at line 345 of file AutoloadGenerator.php.
|
protected |
Determine if $token begins the next expect sequence.
| array | $token |
Definition at line 295 of file AutoloadGenerator.php.
Referenced by getClasses().
|
protected |
Accepts the next token in an expect sequence.
| array |
Definition at line 314 of file AutoloadGenerator.php.
Referenced by getClasses().
|
protected |
List of FQCN detected in this pass.
Definition at line 257 of file AutoloadGenerator.php.
|
protected |
Current namespace.
Definition at line 252 of file AutoloadGenerator.php.
|
protected |
Token from token_get_all() that started an expect sequence.
Definition at line 262 of file AutoloadGenerator.php.
|
protected |
List of tokens that are members of the current expect sequence.
Definition at line 267 of file AutoloadGenerator.php.