Files
core/hwe/sammo/Constraint/ExistsDestNation.php
T
2020-06-12 20:39:31 +09:00

27 lines
608 B
PHP

<?php
namespace sammo\Constraint;
class ExistsDestNation extends Constraint{
const REQ_VALUES = 0;
public function checkInputValues(bool $throwExeception=true):bool{
if(!parent::checkInputValues($throwExeception) && !$throwExeception){
return false;
}
return true;
}
public function test():bool{
$this->checkInputValues();
$this->tested = true;
if($this->destNation['nation']??0){
return true;
}
$this->reason = "멸망한 국가입니다.";
return false;
}
}