예제 #1
0
 public function getMethod($name)
 {
     //if (!array_key_exists($key = mb_strtolower($name),$this->methods)) {
     if ($this->class->hasOwnMethod($name)) {
         return $this->class->getMethod($name);
     }
     // elevate the method
     if ($this->class->getParentClass() != NULL && $this->class->getParentClass()->hasMethod($name)) {
         $this->addMethod($method = $this->class->getParentClass()->getMethod($name));
         //$method->setWasElevated(TRUE);
     } else {
         throw new NoSuchMethodClassBuilderException(sprintf("Methode '%s' ist nicht vorhanden", $name));
     }
     //}
     return $this->class->getMethod($name);
 }