function Expression::__construct
Same name in this branch
- 11.1.x vendor/symfony/validator/Constraints/Expression.php \Symfony\Component\Validator\Constraints\Expression::__construct()
- 11.1.x vendor/phpdocumentor/type-resolver/src/Types/Expression.php \phpDocumentor\Reflection\Types\Expression::__construct()
Constructs an expression statement.
Parameters
Node\Expr $expr Expression:
array<string, mixed> $attributes Additional attributes:
File
-
vendor/
nikic/ php-parser/ lib/ PhpParser/ Node/ Stmt/ Expression.php, line 20
Class
- Expression
- Represents statements of type "expr;"
Namespace
PhpParser\Node\StmtCode
public function __construct(Node\Expr $expr, array $attributes = []) {
$this->attributes = $attributes;
$this->expr = $expr;
}