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

Breadcrumb

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

function MethodNode::getCode

Return value

string

File

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

Class

MethodNode
Method node.

Namespace

Prophecy\Doubler\Generator\Node

Code

public function getCode() {
    if ($this->returnsReference) {
        return "throw new \\Prophecy\\Exception\\Doubler\\ReturnByReferenceException('Returning by reference not supported', get_class(\$this), '{$this->name}');";
    }
    return (string) $this->code;
}

API Navigation

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