You are here

public function ClassNode::addMethod in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpspec/prophecy/src/Prophecy/Doubler/Generator/Node/ClassNode.php \Prophecy\Doubler\Generator\Node\ClassNode::addMethod()

File

vendor/phpspec/prophecy/src/Prophecy/Doubler/Generator/Node/ClassNode.php, line 101

Class

ClassNode
Class node.

Namespace

Prophecy\Doubler\Generator\Node

Code

public function addMethod(MethodNode $method) {
  $this->methods[$method
    ->getName()] = $method;
}