/** * @param RunkitProperty $property * * @return boolean */ public function redefineProperty(\Runkit\RunkitProperty $property) { if (!function_exists('runkit_default_property_add')) { return false; } if (property_exists($property->getClass(), $property->getName())) { if ($this->removeProperty($property->getClass(), $property->getName())) { return $this->addProperty($property); } else { return false; } } else { return $this->addProperty($property); } }