PHP Class Transphpile\Transpile\NodeStateStack

In some occasions (like during anonymous classes), we actually traverse a part of the subtree manually so we need to "store" the original global variables, and use new global variables for that traversal. Once completed, we return to the original global variables.
Datei anzeigen Open project: jaytaph/Transphpile Class Usage Examples

Protected Properties

Property Type Description
$vars

Public Methods

Method Description
count ( $name )
end ( $name )
get ( $name ) : mixed
getInstance ( ) : NodeStateStack We can only reach the nodeStackState class through a ::getInstance() call.
pop ( $name )
popVars ( )
push ( $name, $value )
pushVars ( )
set ( $name, $value )

Private Methods

Method Description
__clone ( )
__construct ( )
__wakeup ( )

Method Details

count() public method

public count ( $name )

end() public method

public end ( $name )

get() public method

public get ( $name ) : mixed
$name
return mixed

getInstance() public static method

We can only reach the nodeStackState class through a ::getInstance() call.
public static getInstance ( ) : NodeStateStack
return NodeStateStack

pop() public method

public pop ( $name )

popVars() public method

public popVars ( )

push() public method

public push ( $name, $value )

pushVars() public method

public pushVars ( )

set() public method

public set ( $name, $value )
$name
$value

Property Details

$vars protected_oe property

protected $vars