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

Breadcrumb

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

function StaticPropertyFetch::__construct

Constructs a static property fetch node.

Parameters

Name|Expr $class Class name:

string|VarLikeIdentifier|Expr $name Property name:

array<string, mixed> $attributes Additional attributes:

File

vendor/nikic/php-parser/lib/PhpParser/Node/Expr/StaticPropertyFetch.php, line 23

Class

StaticPropertyFetch

Namespace

PhpParser\Node\Expr

Code

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