PHP Class Qa\SoftMocksPrinter

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

Méthodes publiques

Méthode Description
pExpr_Closure ( Closure $node )
pStmt_Break ( PhpParser\Node\Stmt\Break_ $node )
pStmt_Case ( PhpParser\Node\Stmt\Case_ $node )
pStmt_Catch ( Catch_ $node )
pStmt_ClassMethod ( ClassMethod $node )
pStmt_Continue ( PhpParser\Node\Stmt\Continue_ $node )
pStmt_Declare ( Declare_ $node )
pStmt_Do ( PhpParser\Node\Stmt\Do_ $node )
pStmt_Echo ( PhpParser\Node\Stmt\Echo_ $node ) Other
pStmt_Else ( PhpParser\Node\Stmt\Else_ $node )
pStmt_ElseIf ( PhpParser\Node\Stmt\ElseIf_ $node )
pStmt_For ( PhpParser\Node\Stmt\For_ $node )
pStmt_Foreach ( PhpParser\Node\Stmt\Foreach_ $node )
pStmt_Function ( Function_ $node )
pStmt_Global ( PhpParser\Node\Stmt\Global_ $node )
pStmt_Goto ( PhpParser\Node\Stmt\Goto_ $node )
pStmt_HaltCompiler ( PhpParser\Node\Stmt\HaltCompiler $node )
pStmt_If ( PhpParser\Node\Stmt\If_ $node )
pStmt_Interface ( Interface_ $node )
pStmt_Label ( PhpParser\Node\Stmt\Label $node )
pStmt_Namespace ( Namespace_ $node )
pStmt_Return ( PhpParser\Node\Stmt\Return_ $node )
pStmt_Static ( PhpParser\Node\Stmt\Static_ $node )
pStmt_StaticVar ( PhpParser\Node\Stmt\StaticVar $node )
pStmt_Switch ( PhpParser\Node\Stmt\Switch_ $node )
pStmt_Throw ( PhpParser\Node\Stmt\Throw_ $node )
pStmt_Trait ( Trait_ $node )
pStmt_TraitUse ( PhpParser\Node\Stmt\TraitUse $node )
pStmt_TryCatch ( TryCatch $node )
pStmt_Unset ( PhpParser\Node\Stmt\Unset_ $node )
pStmt_While ( PhpParser\Node\Stmt\While_ $node )
prettyPrintFile ( array $stmts )

Méthodes protégées

Méthode Description
p ( PhpParser\Node $node )
pClassCommon ( Class_ $node, $afterClassToken )
pEncapsList ( array $encapsList, $quote )
pStmts ( array $nodes, boolean $indent = true ) : string Pretty prints an array of nodes (statements) and indents them optionally.
pType ( $node ) Helpers

Method Details

p() protected méthode

protected p ( PhpParser\Node $node )
$node PhpParser\Node

pClassCommon() protected méthode

protected pClassCommon ( Class_ $node, $afterClassToken )
$node PhpParser\Node\Stmt\Class_

pEncapsList() protected méthode

protected pEncapsList ( array $encapsList, $quote )
$encapsList array

pExpr_Closure() public méthode

public pExpr_Closure ( Closure $node )
$node PhpParser\Node\Expr\Closure

pStmt_Break() public méthode

public pStmt_Break ( PhpParser\Node\Stmt\Break_ $node )
$node PhpParser\Node\Stmt\Break_

pStmt_Case() public méthode

public pStmt_Case ( PhpParser\Node\Stmt\Case_ $node )
$node PhpParser\Node\Stmt\Case_

pStmt_Catch() public méthode

public pStmt_Catch ( Catch_ $node )
$node PhpParser\Node\Stmt\Catch_

pStmt_ClassMethod() public méthode

public pStmt_ClassMethod ( ClassMethod $node )
$node PhpParser\Node\Stmt\ClassMethod

pStmt_Continue() public méthode

public pStmt_Continue ( PhpParser\Node\Stmt\Continue_ $node )
$node PhpParser\Node\Stmt\Continue_

pStmt_Declare() public méthode

public pStmt_Declare ( Declare_ $node )
$node PhpParser\Node\Stmt\Declare_

pStmt_Do() public méthode

public pStmt_Do ( PhpParser\Node\Stmt\Do_ $node )
$node PhpParser\Node\Stmt\Do_

pStmt_Echo() public méthode

Other
public pStmt_Echo ( PhpParser\Node\Stmt\Echo_ $node )
$node PhpParser\Node\Stmt\Echo_

pStmt_Else() public méthode

public pStmt_Else ( PhpParser\Node\Stmt\Else_ $node )
$node PhpParser\Node\Stmt\Else_

pStmt_ElseIf() public méthode

public pStmt_ElseIf ( PhpParser\Node\Stmt\ElseIf_ $node )
$node PhpParser\Node\Stmt\ElseIf_

pStmt_For() public méthode

public pStmt_For ( PhpParser\Node\Stmt\For_ $node )
$node PhpParser\Node\Stmt\For_

pStmt_Foreach() public méthode

public pStmt_Foreach ( PhpParser\Node\Stmt\Foreach_ $node )
$node PhpParser\Node\Stmt\Foreach_

pStmt_Function() public méthode

public pStmt_Function ( Function_ $node )
$node PhpParser\Node\Stmt\Function_

pStmt_Global() public méthode

public pStmt_Global ( PhpParser\Node\Stmt\Global_ $node )
$node PhpParser\Node\Stmt\Global_

pStmt_Goto() public méthode

public pStmt_Goto ( PhpParser\Node\Stmt\Goto_ $node )
$node PhpParser\Node\Stmt\Goto_

pStmt_HaltCompiler() public méthode

public pStmt_HaltCompiler ( PhpParser\Node\Stmt\HaltCompiler $node )
$node PhpParser\Node\Stmt\HaltCompiler

pStmt_If() public méthode

public pStmt_If ( PhpParser\Node\Stmt\If_ $node )
$node PhpParser\Node\Stmt\If_

pStmt_Interface() public méthode

public pStmt_Interface ( Interface_ $node )
$node PhpParser\Node\Stmt\Interface_

pStmt_Label() public méthode

public pStmt_Label ( PhpParser\Node\Stmt\Label $node )
$node PhpParser\Node\Stmt\Label

pStmt_Namespace() public méthode

public pStmt_Namespace ( Namespace_ $node )
$node PhpParser\Node\Stmt\Namespace_

pStmt_Return() public méthode

public pStmt_Return ( PhpParser\Node\Stmt\Return_ $node )
$node PhpParser\Node\Stmt\Return_

pStmt_Static() public méthode

public pStmt_Static ( PhpParser\Node\Stmt\Static_ $node )
$node PhpParser\Node\Stmt\Static_

pStmt_StaticVar() public méthode

public pStmt_StaticVar ( PhpParser\Node\Stmt\StaticVar $node )
$node PhpParser\Node\Stmt\StaticVar

pStmt_Switch() public méthode

public pStmt_Switch ( PhpParser\Node\Stmt\Switch_ $node )
$node PhpParser\Node\Stmt\Switch_

pStmt_Throw() public méthode

public pStmt_Throw ( PhpParser\Node\Stmt\Throw_ $node )
$node PhpParser\Node\Stmt\Throw_

pStmt_Trait() public méthode

public pStmt_Trait ( Trait_ $node )
$node PhpParser\Node\Stmt\Trait_

pStmt_TraitUse() public méthode

public pStmt_TraitUse ( PhpParser\Node\Stmt\TraitUse $node )
$node PhpParser\Node\Stmt\TraitUse

pStmt_TryCatch() public méthode

public pStmt_TryCatch ( TryCatch $node )
$node PhpParser\Node\Stmt\TryCatch

pStmt_Unset() public méthode

public pStmt_Unset ( PhpParser\Node\Stmt\Unset_ $node )
$node PhpParser\Node\Stmt\Unset_

pStmt_While() public méthode

public pStmt_While ( PhpParser\Node\Stmt\While_ $node )
$node PhpParser\Node\Stmt\While_

pStmts() protected méthode

Pretty prints an array of nodes (statements) and indents them optionally.
protected pStmts ( array $nodes, boolean $indent = true ) : string
$nodes array Array of nodes
$indent boolean Whether to indent the printed nodes
Résultat string Pretty printed statements

pType() protected méthode

Helpers
protected pType ( $node )

prettyPrintFile() public méthode

public prettyPrintFile ( array $stmts )
$stmts array