示例#1
0
文件: Clazz.php 项目: hslatman/phan
 /**
  * @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());
 }