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

Breadcrumb

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

function PropertyFetch::__construct

Constructs a function call node.

Parameters

Expr $var Variable holding object:

string|Identifier|Expr $name Property name:

array<string, mixed> $attributes Additional attributes:

File

vendor/nikic/php-parser/lib/PhpParser/Node/Expr/PropertyFetch.php, line 22

Class

PropertyFetch

Namespace

PhpParser\Node\Expr

Code

public function __construct(Expr $var, $name, array $attributes = []) {
    $this->attributes = $attributes;
    $this->var = $var;
    $this->name = \is_string($name) ? new Identifier($name) : $name;
}
RSS feed
Powered by Drupal