Ejemplo n.º 1
0
 /**
  * @param \Runkit\RunkitMethod $method
  *
  * @return boolean
  */
 public function redefineMethod(\Runkit\RunkitMethod $method)
 {
     if (!function_exists('runkit_method_redefine')) {
         return false;
     }
     return runkit_method_redefine($method->getClass(), $method->getName(), (string) $method->getArguments(), $method->getCode()->get(), $method->getAccess());
 }
Ejemplo n.º 2
0
 /**
  * @param RunkitMethod $item
  *
  * @return boolean
  */
 protected function removeInternal($item)
 {
     return $item->remove();
 }