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

Breadcrumb

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

function Const_::__construct

Same name in this branch
  1. 11.1.x vendor/nikic/php-parser/lib/PhpParser/Node/Const_.php \PhpParser\Node\Const_::__construct()

Constructs a const list node.

Parameters

Node\Const_[] $consts Constant declarations:

array<string, mixed> $attributes Additional attributes:

File

vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Const_.php, line 17

Class

Const_

Namespace

PhpParser\Node\Stmt

Code

public function __construct(array $consts, array $attributes = []) {
    $this->attributes = $attributes;
    $this->consts = $consts;
}

API Navigation

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