/** * @return null */ public function addMethod(CodeBase $code_base, Method $method) { $method_fqsen = FullyQualifiedMethodName::make($this->getFQSEN(), $method->getName()); // Don't overwrite overridden methods with // parent methods if ($code_base->hasMethod($method_fqsen)) { return; } $code_base->addMethodInScope($method, $this->getFQSEN()); }