public function matchHostname(string $hostnames): bool
    {
        if( empty($this->hostnames) ){
            return true;
        }

        return array_search(strtolower($hostnames), array_map('strtolower', $this->hostnames)) !== false;
    }
public function matchHostname(string $hostnames): bool
    {
        if( empty($this->hostnames) ){
            return true;
        }

        return array_search(strtolower($hostnames), array_map('strtolower', $this->hostnames)) !== false;
    }
public function matchHostname ( string $ hostnames ) : bool { if ( empty ( $ this -> hostnames ) ) { return true ; } return array_search ( strtolower ( $ hostnames ) , array_map ( 'strtolower' , $ this -> hostnames ) ) !== false ; }
Does the given hostname match the route's hostname?

@param string $hostnames
@return bool
Does the given hostname match the route s hostname?