Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Expression.php

function Expression::__construct

Same name in this branch
  1. 11.1.x vendor/symfony/validator/Constraints/Expression.php \Symfony\Component\Validator\Constraints\Expression::__construct()
  2. 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\Stmt

Code

public function __construct(Node\Expr $expr, array $attributes = []) {
    $this->attributes = $attributes;
    $this->expr = $expr;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal