BaseWarUnitTrigger, TriggerCaller 구조 변경, 클래스 반영

This commit is contained in:
2019-06-06 22:32:35 +09:00
parent ede1d89569
commit e5a5281e10
41 changed files with 132 additions and 127 deletions
+11 -6
View File
@@ -9,17 +9,22 @@ abstract class ObjectTrigger{
const PRIORITY_POST = 40000;
const PRIORITY_FINAL = 50000;
static protected $priority;
protected $priority;
protected $object = null;
static public function getPriority():int{
return static::$priority;
public function getPriority():int{
return $this->priority;
}
public function setPriority(int $newPriority):self{
$this->priority = $newPriority;
return $this;
}
abstract public function action(?array $env=null, $arg=null):?array;
public function getUniqueID():string{
$priority = static::$priority;
$objID = spl_object_id($this->object);
$priority = $this->priority;
$fqn = static::class;
return "{$priority}_{$fqn}_{$objID}";
return "{$priority}_{$fqn}";
}
}