コード例 #1
0
ファイル: Executor.php プロジェクト: oncesk/runkit
 /**
  * @param RunkitConstant $constant
  *
  * @return boolean
  */
 public function redefineConstant(\Runkit\RunkitConstant $constant)
 {
     if (!function_exists('runkit_constant_redefine')) {
         return false;
     }
     return runkit_constant_redefine($constant->getName(), $constant->getValue());
 }
コード例 #2
0
ファイル: Constants.php プロジェクト: oncesk/runkit
 /**
  * @param RunkitConstant $item
  *
  * @return mixed
  */
 protected function addInternal($item)
 {
     return Factory::getExecutor()->addConstant($item->getName(), $item->getValue());
 }