nation)){ if(!$throwExeception){return false; } throw new \InvalidArgumentException("require level in nation"); } return true; } public function test():bool{ $this->checkInputValues(); $this->tested = true; if($this->nation['level'] != 0){ return true; } $this->reason = "방랑군은 불가능합니다."; return false; } }