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

Breadcrumb

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

function Property::__construct

Same name in this branch
  1. 11.1.x vendor/nikic/php-parser/lib/PhpParser/Builder/Property.php \PhpParser\Builder\Property::__construct()
  2. 11.1.x vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Property.php \phpDocumentor\Reflection\DocBlock\Tags\Property::__construct()

Constructs a class property list node.

Parameters

int $flags Modifiers:

PropertyItem[] $props Properties:

array<string, mixed> $attributes Additional attributes:

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

Node\AttributeGroup[] $attrGroups PHP attribute groups:

Node\PropertyHook[] $hooks Property hooks:

File

vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Property.php, line 34

Class

Property

Namespace

PhpParser\Node\Stmt

Code

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

API Navigation

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