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