Свойство | Тип | Описание | |
---|---|---|---|
$aliasManager | |||
$application | |||
$currentBranch | string | integer | ||
$output | Symfony\Component\Console\Output\OutputInterface | ||
$scope | For FunctionDefinition it's null, use scopePointer | ||
$scopePointer |
Свойство | Тип | Описание | |
---|---|---|---|
$eventManager | |||
$filepath | string | ||
$symbols |
Метод | Описание | |
---|---|---|
__construct ( Symfony\Component\Console\Output\OutputInterface $output, |
Construct our Context with all needed information | |
addSymbol ( string $name ) : |
Creates a variable from a symbol and adds it to the context. | |
addVariable ( |
Adds a variable to the context. | |
clear ( ) | Resets context to beginning stage. | |
clearSymbols ( ) | Clears only all symbols. | |
debug ( $message, PhpParser\Node $expr = null ) | Creates a debug message. | |
getCurrentBranch ( ) : integer | ||
getEventManager ( ) : |
||
getExpressionCompiler ( ) : |
||
getFilepath ( ) : string | ||
getSymbol ( $name ) : |
Returns a variable if it exists. | |
getSymbols ( ) : |
Returns an array of all variables. | |
initGlobals ( ) | Adds all global variables to the context. | |
modifyReferencedVariables ( |
Updates all references on the given variable. | |
notice ( string $type, string $message, |
Creates a notice message. | |
setCurrentBranch ( integer | string $currentBranch ) | ||
setFilepath ( string $filepath ) | ||
setScope ( |
||
syntaxError ( |
Creates a syntax error message. | |
warning ( string $type, string $message ) : boolean | Creates a warning message. |
public __construct ( Symfony\Component\Console\Output\OutputInterface $output, |
||
$output | Symfony\Component\Console\Output\OutputInterface | |
$application | ||
$eventManager |
public addVariable ( |
||
$variable | ||
Результат | boolean |
public debug ( $message, PhpParser\Node $expr = null ) | ||
$expr | PhpParser\Node |
public getEventManager ( ) : |
||
Результат |
public getExpressionCompiler ( ) : |
||
Результат |
public getSymbols ( ) : |
||
Результат |
public modifyReferencedVariables ( |
||
$variable | ||
$type | ||
$value |
public setCurrentBranch ( integer | string $currentBranch ) | ||
$currentBranch | integer | string |
public setScope ( |
||
$scope |
public syntaxError ( |
||
$exception | ||
$filepath | string | |
Результат | boolean |
protected EventManager,Webiny\Component\EventManager $eventManager | ||
Результат |
public OutputInterface,Symfony\Component\Console\Output $output | ||
Результат | Symfony\Component\Console\Output\OutputInterface |
public ParentDefinition,PHPSA\Definition|null $scope | ||
Результат |
public ScopePointer,phpsa|null $scopePointer | ||
Результат |