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