Свойство | Type | Description | |
---|---|---|---|
$context | a temporary stack of methods for the currently new interface | ||
$dumper | |||
$methodStack | a list of PhpFile | ||
$newContent | |||
$newInterface |
Méthode | Description | |
---|---|---|
__construct ( |
||
afterTraverse ( array $node ) | {@inheritDoc} | |
beforeTraverse ( array $nodes ) | {@inheritDoc} | |
leaveNode ( PHPParser_Node $node ) | {@inheritDoc} |
Méthode | Description | |
---|---|---|
buildNewInterface ( ) : |
Build the new PhpFile for the new contract | |
enterClassNode ( PHPParser_Node_Stmt_Class $node ) | {@inheritDoc} | |
enterInterfaceNode ( PHPParser_Node_Stmt_Interface $node ) | {@inheritDoc} | |
enterPublicMethodNode ( PHPParser_Node_Stmt_ClassMethod $node ) | {@inheritDoc} | |
enterStandardMethod ( PHPParser_Node_Stmt_ClassMethod $node ) | Stacks the method for the new interface | |
enterTraitNode ( PHPParser_Node_Stmt_Trait $node ) | do nothing | |
writeUpdated ( array $fileList ) | Write a list of PhpFile |
public __construct ( |
||
$ctx | ||
$callable |
protected buildNewInterface ( ) : |
||
Résultat |
protected enterClassNode ( PHPParser_Node_Stmt_Class $node ) | ||
$node | PHPParser_Node_Stmt_Class |
protected enterInterfaceNode ( PHPParser_Node_Stmt_Interface $node ) | ||
$node | PHPParser_Node_Stmt_Interface |
protected enterPublicMethodNode ( PHPParser_Node_Stmt_ClassMethod $node ) | ||
$node | PHPParser_Node_Stmt_ClassMethod |
protected enterStandardMethod ( PHPParser_Node_Stmt_ClassMethod $node ) | ||
$node | PHPParser_Node_Stmt_ClassMethod |
protected enterTraitNode ( PHPParser_Node_Stmt_Trait $node ) | ||
$node | PHPParser_Node_Stmt_Trait |
public leaveNode ( PHPParser_Node $node ) | ||
$node | PHPParser_Node |
protected writeUpdated ( array $fileList ) | ||
$fileList | array |
protected $context |