city)){ if(!$throwExeception){return false; } throw new \InvalidArgumentException("require trade in city"); } return true; } public function test():bool{ $this->checkInputValues(); $this->tested = true; if($this->city['trade'] !== null || $this->arg >= 2){ return true; } $this->reason = "도시에 상인이 없습니다."; return false; } }