/** * Send data to whois server and call parse() to process rawdata * * @throws NoAdapterException * @param object $query * @return void */ public function call($query = '') { if ($query != '') { $this->Query = filter_var($query, FILTER_SANITIZE_STRING); } $Config = $this->Config->getCurrent(); $Adapter = AbstractAdapter::factory($Config['adapter']); if ($Adapter instanceof AbstractAdapter) { $this->rawdata = $Adapter->call($this->Query, $Config); $this->parse(); } else { throw \WhoisParser\AbstractException::factory('NoAdapter', 'Adapter ' . $Config['adapter'] . ' could not be found.'); } }