Свойство | Тип | Описание | |
---|---|---|---|
$anonymousClassNodes | array |
Метод | Описание | |
---|---|---|
afterTraverse ( array $nodes ) | ||
convertToPhp5Statements ( array $php7statements ) : PhpParser\Node[] | ||
leaveNode ( PhpParser\Node $node ) |
Метод | Описание | |
---|---|---|
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 | |
Результат | PhpParser\Node[] |
protected getAnonymousClassHookIndex ( array $statements ) : integer | ||
$statements | array | |
Результат | integer |
protected moveAnonymousClassesToHook ( array $nodes, $hookIndex, $anonymousClassStatements ) : array | ||
$nodes | array | |
$hookIndex | ||
$anonymousClassStatements | ||
Результат | array |