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

Breadcrumb

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

function Arg::__construct

Constructs a function call argument node.

Parameters

Expr $value Value to pass:

bool $byRef Whether to pass by ref:

bool $unpack Whether to unpack the argument:

array<string, mixed> $attributes Additional attributes:

Identifier|null $name Parameter name (for named parameters):

Overrides NodeAbstract::__construct

File

vendor/nikic/php-parser/lib/PhpParser/Node/Arg.php, line 26

Class

Arg

Namespace

PhpParser\Node

Code

public function __construct(Expr $value, bool $byRef = false, bool $unpack = false, array $attributes = [], ?Identifier $name = null) {
    $this->attributes = $attributes;
    $this->name = $name;
    $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