general)){ if(!$throwExeception){return false; } throw new \InvalidArgumentException("require troop in general"); } return true; } public function test():bool{ $this->checkInputValues(); $this->tested = true; if($this->general['no'] == $this->general['troop']){ return true; } $this->reason = "부대장이 아닙니다."; return false; } }