PHP Class Qa\SoftMocksTraverser

Inheritance: extends PhpParser\NodeVisitorAbstract
ファイルを表示 Open project: badoo/soft-mocks

Public Properties

Property Type Description
$can_ref

Public Methods

Method 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

Method 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 method

public __construct ( $filename )

beforeConst() public method

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

beforeExpr_Yield() public method

public beforeExpr_Yield ( )

beforeExpr_YieldFrom() public method

beforeParam() public method

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

beforeStmt_Class() public method

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

beforeStmt_ClassMethod() public method

beforeStmt_Interface() public method

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

beforeStmt_PropertyProperty() public method

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

beforeStmt_StaticVar() public method

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

beforeStmt_Trait() public method

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

enterNode() public method

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

ignoreClass() public static method

public static ignoreClass ( $class )

ignoreConstant() public static method

public static ignoreConstant ( $constant )

ignoreFunction() public static method

public static ignoreFunction ( $function )

isClassIgnored() public static method

public static isClassIgnored ( $class )

isConstIgnored() public static method

public static isConstIgnored ( $const )

isFunctionIgnored() public static method

public static isFunctionIgnored ( $func )

leaveNode() public method

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

rewriteConst() public method

public rewriteConst ( )

rewriteExpr_ClassConstFetch() public method

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

rewriteExpr_ConstFetch() public method

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

rewriteExpr_FuncCall() public method

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

rewriteExpr_Include() public method

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

rewriteParam() public method

public rewriteParam ( )

rewriteScalar_MagicConst_Dir() public method

rewriteScalar_MagicConst_File() public method

rewriteStmt_ClassMethod() public method

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

rewriteStmt_Interface() public method

rewriteStmt_PropertyProperty() public method

rewriteStmt_StaticVar() public method

Property Details

$can_ref static_oe public_oe property

static public $can_ref