턴 수행 constraint를 상세하게 분리, argTest 추가. 턴 커맨드 실행용 클래스, ajax 파일 준비
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user