PHP Class Qa\SoftMocksTraverser

Inheritance: extends PhpParser\NodeVisitorAbstract
Afficher le fichier Open project: badoo/soft-mocks

Méthodes publiques

Свойство Type Description
$can_ref

Méthodes publiques

Méthode Description
__construct ( $filename )
beforeConst ( ) Cannot rewrite constants that are used as default values in constant declarations
beforeExpr_Yield ( )
beforeExpr_YieldFrom ( )
beforeParam ( ) Cannot rewrite constants that are used as default values in function arguments
beforeStmt_Class ( Class_ $Node )
beforeStmt_ClassMethod ( )
beforeStmt_Interface ( Interface_ $Node )
beforeStmt_PropertyProperty ( ) Cannot rewrite constants that are used as default values in property declarations
beforeStmt_StaticVar ( ) Cannot rewrite constants that are used as default values in static variable declarations
beforeStmt_Trait ( Trait_ $Node )
enterNode ( PhpParser\Node $Node )
ignoreClass ( $class )
ignoreConstant ( $constant )
ignoreFunction ( $function )
isClassIgnored ( $class )
isConstIgnored ( $const )
isFunctionIgnored ( $func )
leaveNode ( PhpParser\Node $Node )
rewriteConst ( )
rewriteExpr_ClassConstFetch ( PhpParser\Node\Expr\ClassConstFetch $Node )
rewriteExpr_ConstFetch ( PhpParser\Node\Expr\ConstFetch $Node )
rewriteExpr_FuncCall ( PhpParser\Node\Expr\FuncCall $Node )
rewriteExpr_Include ( PhpParser\Node\Expr\Include_ $Node )
rewriteParam ( )
rewriteScalar_MagicConst_Dir ( )
rewriteScalar_MagicConst_File ( )
rewriteStmt_ClassMethod ( ClassMethod $Node )
rewriteStmt_Interface ( )
rewriteStmt_PropertyProperty ( )
rewriteStmt_StaticVar ( )

Private Methods

Méthode Description
canRef ( PhpParser\Node\Expr $value ) : boolean Determines whether or not a parameter can be reference (e.g. vars can be referenced, while function calls cannot)
getNamespaceArg ( )
nodeArgsToArray ( $node_args, array $arg_is_ref = [] ) : PhpParser\Node\Expr\Array_
nodeNameToArg ( $name )

Method Details

__construct() public méthode

public __construct ( $filename )

beforeConst() public méthode

Cannot rewrite constants that are used as default values in constant declarations
public beforeConst ( )

beforeExpr_Yield() public méthode

public beforeExpr_Yield ( )

beforeExpr_YieldFrom() public méthode

beforeParam() public méthode

Cannot rewrite constants that are used as default values in function arguments
public beforeParam ( )

beforeStmt_Class() public méthode

public beforeStmt_Class ( Class_ $Node )
$Node PhpParser\Node\Stmt\Class_

beforeStmt_ClassMethod() public méthode

beforeStmt_Interface() public méthode

public beforeStmt_Interface ( Interface_ $Node )
$Node PhpParser\Node\Stmt\Interface_

beforeStmt_PropertyProperty() public méthode

Cannot rewrite constants that are used as default values in property declarations

beforeStmt_StaticVar() public méthode

Cannot rewrite constants that are used as default values in static variable declarations

beforeStmt_Trait() public méthode

public beforeStmt_Trait ( Trait_ $Node )
$Node PhpParser\Node\Stmt\Trait_

enterNode() public méthode

public enterNode ( PhpParser\Node $Node )
$Node PhpParser\Node

ignoreClass() public static méthode

public static ignoreClass ( $class )

ignoreConstant() public static méthode

public static ignoreConstant ( $constant )

ignoreFunction() public static méthode

public static ignoreFunction ( $function )

isClassIgnored() public static méthode

public static isClassIgnored ( $class )

isConstIgnored() public static méthode

public static isConstIgnored ( $const )

isFunctionIgnored() public static méthode

public static isFunctionIgnored ( $func )

leaveNode() public méthode

public leaveNode ( PhpParser\Node $Node )
$Node PhpParser\Node

rewriteConst() public méthode

public rewriteConst ( )

rewriteExpr_ClassConstFetch() public méthode

public rewriteExpr_ClassConstFetch ( PhpParser\Node\Expr\ClassConstFetch $Node )
$Node PhpParser\Node\Expr\ClassConstFetch

rewriteExpr_ConstFetch() public méthode

public rewriteExpr_ConstFetch ( PhpParser\Node\Expr\ConstFetch $Node )
$Node PhpParser\Node\Expr\ConstFetch

rewriteExpr_FuncCall() public méthode

public rewriteExpr_FuncCall ( PhpParser\Node\Expr\FuncCall $Node )
$Node PhpParser\Node\Expr\FuncCall

rewriteExpr_Include() public méthode

public rewriteExpr_Include ( PhpParser\Node\Expr\Include_ $Node )
$Node PhpParser\Node\Expr\Include_

rewriteParam() public méthode

public rewriteParam ( )

rewriteScalar_MagicConst_Dir() public méthode

rewriteScalar_MagicConst_File() public méthode

rewriteStmt_ClassMethod() public méthode

public rewriteStmt_ClassMethod ( ClassMethod $Node )
$Node PhpParser\Node\Stmt\ClassMethod

rewriteStmt_Interface() public méthode

rewriteStmt_PropertyProperty() public méthode

rewriteStmt_StaticVar() public méthode

Property Details

$can_ref static_oe public_oe property

static public $can_ref