턴 수행 constraint를 상세하게 분리, argTest 추가. 턴 커맨드 실행용 클래스, ajax 파일 준비

This commit is contained in:
2018-09-16 22:16:08 +09:00
parent 0dfd010685
commit f919e6eb43
14 changed files with 164 additions and 38 deletions
+2 -8
View File
@@ -162,15 +162,9 @@ abstract class Constraint{
return true;
}
public function reason($withTest=true):?string{
public function reason():?string{
if(!$this->tested === false){
if($withTest){
$this->test();
}
else{
throw new \RuntimeException('test가 실행되지 않음');
}
throw new \RuntimeException('test가 실행되지 않음');
}
return $this->reason;
}