コード例 #1
0
ファイル: Executor.php プロジェクト: oncesk/runkit
 /**
  * @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);
     }
 }