Esempio n. 1
0
 public function elevateParent()
 {
     if (isset($this->parentClass)) {
         $this->parentClass->elevateClass();
         foreach ($this->parentClass->getAllProperties() as $gProperty) {
             // nicht addProperty nehmen das würde declaringClass falsch setzen
             $this->properties[$gProperty->getName()] = $gProperty;
         }
         foreach ($this->parentClass->getAllMethods() as $gMethod) {
             // nicht addMethod nehmen das würde declaringClass falsch setzen
             $this->methods[$gMethod->getName()] = $gMethod;
         }
     }
 }