public function addMethod($methodName) { $this->node->stmts[] = new ClassMethod($methodName); unset($this->cachedMethods); }
/** * {@inheritdoc} */ public function addMethod($methodName) { return $this->reflectionClass->addMethod($methodName); }