public function setMethod(PhpMethod $method)
 {
     $this->methods[$method->getName()] = $method;
     return $this;
 }
Beispiel #2
0
 /**
  * Constructor
  *
  * @param PhpMethod $method
  */
 public function __construct(PhpMethod $method)
 {
     parent::__construct($method->getName());
     $this->method = $method;
     $this->createAsProxy();
 }