/** * @param RunkitProperty $property * @param string $newName * * @return boolean */ public function renameProperty(\Runkit\RunkitProperty $property, $newName) { if (!function_exists('runkit_default_property_add')) { return false; } if ($property->remove()) { return runkit_default_property_add($property->getClass(), $newName, $property->getValue(), $property->getOverrideMode() ? $property->getAccess() | Runkit::OVERRIDE_OBJECTS : $property->getAccess()); } return false; }
/** * @param RunkitProperty $item * * @return boolean */ protected function removeInternal($item) { return $item->remove(); }