general)){ if(!$throwExeception){return false; } throw new \InvalidArgumentException("require train in general"); } return true; } public function test():bool{ $this->checkInputValues(); $this->tested = true; if($this->general['train'] < $this->arg){ return true; } $this->reason = "병사들은 이미 정예병사들입니다."; return false; } }