PHP Class PHPSA\Compiler\Expression

Afficher le fichier Open project: ovr/phpsa Class Usage Examples

Protected Properties

Свойство Type Description
$context PHPSA\Context
$eventManager Webiny\Component\EventManager\EventManager

Méthodes publiques

Méthode Description
__construct ( Context $context, EventManager $eventManager )
compile ( object | string $expr ) : CompiledExpression
declareVariable ( PhpParser\Node\Expr\Variable $expr, mixed $value = null, integer $type = CompiledExpression::UNKNOWN ) : CompiledExpression
getFullyQualifiedNodeName ( PhpParser\Node\Name\FullyQualified $expr ) : CompiledExpression
getNodeName ( Name $expr ) : CompiledExpression

Méthodes protégées

Méthode Description
factory ( $expr ) : PHPSA\Compiler\ExpressionCompilerInterface | AbstractExpressionCompiler

Method Details

__construct() public méthode

public __construct ( Context $context, EventManager $eventManager )
$context PHPSA\Context
$eventManager Webiny\Component\EventManager\EventManager

compile() public méthode

public compile ( object | string $expr ) : CompiledExpression
$expr object | string
Résultat PHPSA\CompiledExpression

declareVariable() public méthode

public declareVariable ( PhpParser\Node\Expr\Variable $expr, mixed $value = null, integer $type = CompiledExpression::UNKNOWN ) : CompiledExpression
$expr PhpParser\Node\Expr\Variable
$value mixed
$type integer
Résultat PHPSA\CompiledExpression

factory() protected méthode

protected factory ( $expr ) : PHPSA\Compiler\ExpressionCompilerInterface | AbstractExpressionCompiler
$expr
Résultat PHPSA\Compiler\ExpressionCompilerInterface | PHPSA\Compiler\Expression\AbstractExpressionCompiler

getFullyQualifiedNodeName() public méthode

public getFullyQualifiedNodeName ( PhpParser\Node\Name\FullyQualified $expr ) : CompiledExpression
$expr PhpParser\Node\Name\FullyQualified
Résultat PHPSA\CompiledExpression

getNodeName() public méthode

public getNodeName ( Name $expr ) : CompiledExpression
$expr PhpParser\Node\Name
Résultat PHPSA\CompiledExpression

Property Details

$context protected_oe property

protected Context,PHPSA $context
Résultat PHPSA\Context

$eventManager protected_oe property

protected EventManager,Webiny\Component\EventManager $eventManager
Résultat Webiny\Component\EventManager\EventManager