시나리오용 EventEngine.... 틀만 완성!

This commit is contained in:
2018-03-28 02:45:44 +09:00
parent 0ad8db5a63
commit a03eac6f2a
11 changed files with 299 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
<?php
namespace sammo\Event\Condition;
class ConstBool extends sammo\Event\Condition{
private $fixedResult = true;
public function __construct(bool $value){
$this->fixedResult = $value;
}
public function eval($env=null){
return [
'value'=>$this->fixedResult,
'chain'=>['ConstBool']
];
}
}