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

Breadcrumb

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

function BuilderFactory::methodCall

Creates a method call node.

Parameters

Expr $var Variable the method is called on:

string|Identifier|Expr $name Method name:

array $args Method arguments:

File

vendor/nikic/php-parser/lib/PhpParser/BuilderFactory.php, line 275

Class

BuilderFactory

Namespace

PhpParser

Code

public function methodCall(Expr $var, $name, array $args = []) : Expr\MethodCall {
    return new Expr\MethodCall($var, BuilderHelpers::normalizeIdentifierOrExpr($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