Condition에 Date 추가.

Condition에 logic 단축 명령 추가
This commit is contained in:
2018-03-28 03:19:05 +09:00
parent e739b7a39f
commit 6913fe0313
2 changed files with 84 additions and 1 deletions
+7 -1
View File
@@ -10,7 +10,13 @@ abstract class Condition{
return $conditionChain;
}
$className = 'sammo\\Event\\Condition\\'.$conditionChain[0];
$key = $conditionChain[0];
if(\array_key_exists(strtolower($key), Condition\Logic::AVAILABLE_LOGIC_NAME)){
//logic 단축 명령.
return new Condition\Logic($key, array_slice($conditionChain, 1));
}
$className = 'sammo\\Event\\Condition\\'.$key;
if(class_exists($className)){
$args = [];