public function MethodNode::useParentCode in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/phpspec/prophecy/src/Prophecy/Doubler/Generator/Node/MethodNode.php \Prophecy\Doubler\Generator\Node\MethodNode::useParentCode()
File
- vendor/
phpspec/ prophecy/ src/ Prophecy/ Doubler/ Generator/ Node/ MethodNode.php, line 169
Class
- MethodNode
- Method node.
Namespace
Prophecy\Doubler\Generator\NodeCode
public function useParentCode() {
$this->code = sprintf('return parent::%s(%s);', $this
->getName(), implode(', ', array_map(function (ArgumentNode $arg) {
return '$' . $arg
->getName();
}, $this->arguments)));
}