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

Breadcrumb

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

class MethodCall

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\MethodCall extends \PhpParser\Node\Expr\CallLike

Expanded class hierarchy of MethodCall

18 files declare their use of MethodCall
AccessCheckTypeSpecifyingExtension.php in vendor/mglaman/phpstan-drupal/src/Type/EntityQuery/AccessCheckTypeSpecifyingExtension.php
AssertMethodTypeSpecifyingExtension.php in vendor/phpstan/phpstan-phpunit/src/Type/PHPUnit/Assert/AssertMethodTypeSpecifyingExtension.php
CallToDeprecatedMethodRule.php in vendor/phpstan/phpstan-deprecation-rules/src/Rules/Deprecations/CallToDeprecatedMethodRule.php
ConfigReturnTypeExtension.php in vendor/composer/composer/src/Composer/PHPStan/ConfigReturnTypeExtension.php
ContainerDynamicReturnTypeExtension.php in vendor/mglaman/phpstan-drupal/src/Type/ContainerDynamicReturnTypeExtension.php

... See full list

File

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

Namespace

PhpParser\Node\Expr
View source
class MethodCall extends CallLike {
    
    /** @var Expr Variable holding object */
    public Expr $var;
    
    /** @var Identifier|Expr Method name */
    public Node $name;
    
    /** @var array<Arg|VariadicPlaceholder> Arguments */
    public array $args;
    
    /**
     * Constructs a function call node.
     *
     * @param Expr $var Variable holding object
     * @param string|Identifier|Expr $name Method name
     * @param array<Arg|VariadicPlaceholder> $args Arguments
     * @param array<string, mixed> $attributes Additional attributes
     */
    public function __construct(Expr $var, $name, array $args = [], array $attributes = []) {
        $this->attributes = $attributes;
        $this->var = $var;
        $this->name = \is_string($name) ? new Identifier($name) : $name;
        $this->args = $args;
    }
    public function getSubNodeNames() : array {
        return [
            'var',
            'name',
            'args',
        ];
    }
    public function getType() : string {
        return 'Expr_MethodCall';
    }
    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.
MethodCall::$args public property @var array&lt;Arg|VariadicPlaceholder&gt; Arguments
MethodCall::$name public property @var Identifier|Expr Method name
MethodCall::$var public property @var Expr Variable holding object
MethodCall::getRawArgs public function Return raw arguments, which may be actual Args, or VariadicPlaceholders for first-class
callables.
Overrides CallLike::getRawArgs
MethodCall::getSubNodeNames public function
MethodCall::getType public function
MethodCall::__construct public function Constructs a function call node.

API Navigation

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