general)){ if(!$throwExeception){return false; } throw new \InvalidArgumentException("require city in general"); } if(!key_exists('nation', $this->general)){ if(!$throwExeception){return false; } throw new \InvalidArgumentException("require nation in general"); } return true; } public function test():bool{ $this->checkInputValues(); $this->tested = true; $db = DB::db(); $allowedNationList = [$this->general['nation']]; $distanceList = \sammo\searchDistanceListToDest($this->general['city'], $this->destCity['city'], $allowedNationList); if(!$distanceList){ $this->reason = "경로에 도달할 방법이 없습니다."; return false; } return true; } }