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

Breadcrumb

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

function StaticCall::__construct

Constructs a static method call node.

Parameters

Node\Name|Expr $class Class name:

string|Identifier|Expr $name Method name:

array<Arg|VariadicPlaceholder> $args Arguments:

array<string, mixed> $attributes Additional attributes:

File

vendor/nikic/php-parser/lib/PhpParser/Node/Expr/StaticCall.php, line 27

Class

StaticCall

Namespace

PhpParser\Node\Expr

Code

public function __construct(Node $class, $name, array $args = [], array $attributes = []) {
    $this->attributes = $attributes;
    $this->class = $class;
    $this->name = \is_string($name) ? new Identifier($name) : $name;
    $this->args = $args;
}

API Navigation

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