general)){ if(!$throwExeception){return false; } throw new \InvalidArgumentException("require officer_level in general"); } return true; } public function test():bool{ $this->checkInputValues(); $this->tested = true; if($this->general['officer_level'] != 12){ return true; } $this->reason = "군주입니다."; return false; } }