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

Breadcrumb

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

function MethodNode::__construct

Parameters

string $name:

string|null $code:

File

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

Class

MethodNode
Method node.

Namespace

Prophecy\Doubler\Generator\Node

Code

public function __construct($name, $code = null) {
    $this->name = $name;
    $this->code = $code;
    $this->returnTypeNode = new ReturnTypeNode();
}

API Navigation

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