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

Breadcrumb

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

class StaticCall

Hierarchy

  • class \PhpParser\NodeAbstract implements \PhpParser\Node, \PhpParser\JsonSerializable
    • class \PhpParser\Node\Expr extends \PhpParser\NodeAbstract
      • class \PhpParser\Node\Expr\CallLike extends \PhpParser\Node\Expr
        • class \PhpParser\Node\Expr\StaticCall extends \PhpParser\Node\Expr\CallLike

Expanded class hierarchy of StaticCall

10 files declare their use of StaticCall
AssertStaticMethodTypeSpecifyingExtension.php in vendor/phpstan/phpstan-phpunit/src/Type/PHPUnit/Assert/AssertStaticMethodTypeSpecifyingExtension.php
CallToDeprecatedStaticMethodRule.php in vendor/phpstan/phpstan-deprecation-rules/src/Rules/Deprecations/CallToDeprecatedStaticMethodRule.php
DrupalClassResolverDynamicStaticReturnTypeExtension.php in vendor/mglaman/phpstan-drupal/src/Type/DrupalClassResolverDynamicStaticReturnTypeExtension.php
DrupalServiceDynamicReturnTypeExtension.php in vendor/mglaman/phpstan-drupal/src/Type/DrupalServiceDynamicReturnTypeExtension.php
DrupalStaticEntityQueryDynamicReturnTypeExtension.php in vendor/mglaman/phpstan-drupal/src/Type/DrupalStaticEntityQueryDynamicReturnTypeExtension.php

... See full list

File

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

Namespace

PhpParser\Node\Expr
View source
class StaticCall extends CallLike {
    
    /** @var Node\Name|Expr Class name */
    public Node $class;
    
    /** @var Identifier|Expr Method name */
    public Node $name;
    
    /** @var array<Arg|VariadicPlaceholder> Arguments */
    public array $args;
    
    /**
     * Constructs a static method call node.
     *
     * @param Node\Name|Expr $class Class name
     * @param string|Identifier|Expr $name Method name
     * @param array<Arg|VariadicPlaceholder> $args Arguments
     * @param array<string, mixed> $attributes Additional attributes
     */
    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;
    }
    public function getSubNodeNames() : array {
        return [
            'class',
            'name',
            'args',
        ];
    }
    public function getType() : string {
        return 'Expr_StaticCall';
    }
    public function getRawArgs() : array {
        return $this->args;
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title
CallLike::getArgs public function Assert that this is not a first-class callable and return only ordinary Args.
CallLike::isFirstClassCallable public function Returns whether this call expression is actually a first class callable.
StaticCall::$args public property @var array&lt;Arg|VariadicPlaceholder&gt; Arguments
StaticCall::$class public property @var Node\Name|Expr Class name
StaticCall::$name public property @var Identifier|Expr Method name
StaticCall::getRawArgs public function Return raw arguments, which may be actual Args, or VariadicPlaceholders for first-class
callables.
Overrides CallLike::getRawArgs
StaticCall::getSubNodeNames public function
StaticCall::getType public function
StaticCall::__construct public function Constructs a static method call node.

API Navigation

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