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

Breadcrumb

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

function MethodNode::generateArgument

Return value

string

File

vendor/phpspec/prophecy/src/Prophecy/Doubler/Generator/Node/MethodNode.php, line 250

Class

MethodNode
Method node.

Namespace

Prophecy\Doubler\Generator\Node

Code

private function generateArgument(ArgumentNode $arg) {
    $argument = '$' . $arg->getName();
    if ($arg->isVariadic()) {
        $argument = '...' . $argument;
    }
    return $argument;
}

API Navigation

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