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

Breadcrumb

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

function ArrayItem::__construct

Constructs an array item node.

Parameters

Expr $value Value:

null|Expr $key Key:

bool $byRef Whether to assign by reference:

array<string, mixed> $attributes Additional attributes:

Overrides NodeAbstract::__construct

File

vendor/nikic/php-parser/lib/PhpParser/Node/ArrayItem.php, line 25

Class

ArrayItem

Namespace

PhpParser\Node

Code

public function __construct(Expr $value, ?Expr $key = null, bool $byRef = false, array $attributes = [], bool $unpack = false) {
    $this->attributes = $attributes;
    $this->key = $key;
    $this->value = $value;
    $this->byRef = $byRef;
    $this->unpack = $unpack;
}

API Navigation

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