Property | Type | Description | |
---|---|---|---|
$anonymousClassNodes | array |
Method | Description | |
---|---|---|
afterTraverse ( array $nodes ) | ||
convertToPhp5Statements ( array $php7statements ) : PhpParser\Node[] | ||
leaveNode ( PhpParser\Node $node ) |
Method | Description | |
---|---|---|
getAnonymousClassHookIndex ( array $statements ) : integer | Find the index of the first statement that is not a declare, use or namespace statement. | |
moveAnonymousClassesToHook ( array $nodes, $hookIndex, $anonymousClassStatements ) : array |
public convertToPhp5Statements ( array $php7statements ) : PhpParser\Node[] | ||
$php7statements | array | |
return | PhpParser\Node[] |
protected getAnonymousClassHookIndex ( array $statements ) : integer | ||
$statements | array | |
return | integer |
protected moveAnonymousClassesToHook ( array $nodes, $hookIndex, $anonymousClassStatements ) : array | ||
$nodes | array | |
$hookIndex | ||
$anonymousClassStatements | ||
return | array |