public static function create($domain, $whois)
    {
        $tld = substr(strrchr($domain, '.'), 1);
        $parserClass = 'Wisdom\\Whois\\Parser\\Tld\\'.ucfirst($tld);
        if (!class_exists($parserClass)) {
            throw new WhoisParserNotFoundException(sprintf(
                'Whois parser for .%s domains not found.',
                $tld
            ));
        }

        return new $parserClass($domain, $whois);
    }
public static function create($domain, $whois)
    {
        $tld = substr(strrchr($domain, '.'), 1);
        $parserClass = 'Wisdom\\Whois\\Parser\\Tld\\'.ucfirst($tld);
        if (!class_exists($parserClass)) {
            throw new WhoisParserNotFoundException(sprintf(
                'Whois parser for .%s domains not found.',
                $tld
            ));
        }

        return new $parserClass($domain, $whois);
    }
public static function create ( $ domain , $ whois ) { $ tld = substr ( strrchr ( $ domain , '.' ) , 1 ) ; $ parserClass = 'Wisdom\\Whois\\Parser\\Tld\\' . ucfirst ( $ tld ) ; if ( ! class_exists ( $ parserClass ) ) { throw new WhoisParserNotFoundException ( sprintf ( 'Whois parser for .%s domains not found.' , $ tld ) ) ; } return new $ parserClass ( $ domain , $ whois ) ; }
Creates whois parser for given domain name.

@param  string    $domain
@param  string    $whois
@return Interface
Creates whois parser for given domain name .