class AbstractExpression
Abstract class for all nodes that represents an expression.
@author Fabien Potencier <fabien@symfony.com>
Hierarchy
- class \Twig\Node\Node implements \Twig\Node\Countable, \Twig\Node\IteratorAggregate
- class \Twig\Node\Expression\AbstractExpression extends \Twig\Node\Node
Expanded class hierarchy of AbstractExpression
23 files declare their use of AbstractExpression
- AbstractBinary.php in vendor/
twig/ twig/ src/ Node/ Expression/ Binary/ AbstractBinary.php - AbstractUnary.php in vendor/
twig/ twig/ src/ Node/ Expression/ Unary/ AbstractUnary.php - AssignTemplateVariable.php in vendor/
twig/ twig/ src/ Node/ Expression/ Variable/ AssignTemplateVariable.php - CheckToStringNode.php in vendor/
twig/ twig/ src/ Node/ CheckToStringNode.php - CoreExtension.php in vendor/
twig/ twig/ src/ Extension/ CoreExtension.php
File
-
vendor/
twig/ twig/ src/ Node/ Expression/ AbstractExpression.php, line 22
Namespace
Twig\Node\ExpressionView source
abstract class AbstractExpression extends Node {
public function isGenerator() : bool {
return $this->hasAttribute('is_generator') && $this->getAttribute('is_generator');
}
/**
* @return static
*/
public function setExplicitParentheses() : self {
$this->setAttribute('with_parentheses', true);
return $this;
}
public function hasExplicitParentheses() : bool {
return $this->hasAttribute('with_parentheses') && $this->getAttribute('with_parentheses');
}
}