public function MethodNode::getCode in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpspec/prophecy/src/Prophecy/Doubler/Generator/Node/MethodNode.php \Prophecy\Doubler\Generator\Node\MethodNode::getCode()
File
- vendor/
phpspec/ prophecy/ src/ Prophecy/ Doubler/ Generator/ Node/ MethodNode.php, line 159
Class
- MethodNode
- Method node.
Namespace
Prophecy\Doubler\Generator\NodeCode
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;
}