PHP Class Qa\SoftMocksPrinter

Inheritance: extends PhpParser\PrettyPrinter\Standard
Exibir arquivo Open project: badoo/soft-mocks

Public Methods

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

Protected Methods

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

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

pClassCommon() protected method

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

pEncapsList() protected method

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

pExpr_Closure() public method

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

pStmt_Break() public method

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

pStmt_Case() public method

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

pStmt_Catch() public method

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

pStmt_ClassMethod() public method

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

pStmt_Continue() public method

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

pStmt_Declare() public method

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

pStmt_Do() public method

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

pStmt_Echo() public method

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

pStmt_Else() public method

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

pStmt_ElseIf() public method

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

pStmt_For() public method

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

pStmt_Foreach() public method

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

pStmt_Function() public method

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

pStmt_Global() public method

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

pStmt_Goto() public method

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

pStmt_HaltCompiler() public method

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

pStmt_If() public method

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

pStmt_Interface() public method

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

pStmt_Label() public method

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

pStmt_Namespace() public method

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

pStmt_Return() public method

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

pStmt_Static() public method

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

pStmt_StaticVar() public method

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

pStmt_Switch() public method

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

pStmt_Throw() public method

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

pStmt_Trait() public method

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

pStmt_TraitUse() public method

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

pStmt_TryCatch() public method

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

pStmt_Unset() public method

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

pStmt_While() public method

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

pStmts() protected method

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
return string Pretty printed statements

pType() protected method

Helpers
protected pType ( $node )

prettyPrintFile() public method

public prettyPrintFile ( array $stmts )
$stmts array