general)){ if(!$throwExeception){return false; } throw new \InvalidArgumentException("require gold in general"); } return true; } public function test():bool{ $this->checkInputValues(); $this->tested = true; if($this->general['gold'] >= $this->arg){ return true; } $this->reason = "자금이 모자랍니다."; return false; } }