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.
Afficher le fichier Open project: jaytaph/Transphpile Class Usage Examples

Protected Properties

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

Méthodes publiques

Méthode 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

Méthode Description
__clone ( )
__construct ( )
__wakeup ( )

Method Details

count() public méthode

public count ( $name )

end() public méthode

public end ( $name )

get() public méthode

public get ( $name ) : mixed
$name
Résultat mixed

getInstance() public static méthode

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

pop() public méthode

public pop ( $name )

popVars() public méthode

public popVars ( )

push() public méthode

public push ( $name, $value )

pushVars() public méthode

public pushVars ( )

set() public méthode

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

Property Details

$vars protected_oe property

protected $vars