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

Breadcrumb

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

function ClassConst::__construct

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

Constructs a class const list node.

Parameters

Node\Const_[] $consts Constant declarations:

int $flags Modifiers:

array<string, mixed> $attributes Additional attributes:

list<Node\AttributeGroup> $attrGroups PHP attribute groups:

null|Node\Identifier|Node\Name|Node\ComplexType $type Type declaration:

File

vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/ClassConst.php, line 27

Class

ClassConst

Namespace

PhpParser\Node\Stmt

Code

public function __construct(array $consts, int $flags = 0, array $attributes = [], array $attrGroups = [], ?Node $type = null) {
    $this->attributes = $attributes;
    $this->flags = $flags;
    $this->consts = $consts;
    $this->attrGroups = $attrGroups;
    $this->type = $type;
}

API Navigation

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