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

Breadcrumb

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

class FuncCall

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

Expanded class hierarchy of FuncCall

4 files declare their use of FuncCall
AssertFunctionTypeSpecifyingExtension.php in vendor/phpstan/phpstan-phpunit/src/Type/PHPUnit/Assert/AssertFunctionTypeSpecifyingExtension.php
AssertTypeSpecifyingExtensionHelper.php in vendor/phpstan/phpstan-phpunit/src/Type/PHPUnit/Assert/AssertTypeSpecifyingExtensionHelper.php
CallToDeprecatedFunctionRule.php in vendor/phpstan/phpstan-deprecation-rules/src/Rules/Deprecations/CallToDeprecatedFunctionRule.php
DiscouragedFunctionsRule.php in vendor/mglaman/phpstan-drupal/src/Rules/Drupal/Coder/DiscouragedFunctionsRule.php

File

vendor/nikic/php-parser/lib/PhpParser/Node/Expr/FuncCall.php, line 8

Namespace

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