/** * @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()); }
/** * @param RunkitMethod $item * * @return boolean */ protected function removeInternal($item) { return $item->remove(); }