/**
  * Encodes host
  *
  * @param Paysera_WalletApi_Entity_Client_Host $host
  *
  * @return array
  * @throws Paysera_WalletApi_Exception_LogicException
  */
 public function encodeHost(Paysera_WalletApi_Entity_Client_Host $host)
 {
     if (!$host->getHost()) {
         throw new Paysera_WalletApi_Exception_LogicException('Host must be provided');
     }
     return array('host' => $host->getHost(), 'port' => $host->getPort(), 'path' => $host->getPath(), 'protocol' => $host->getProtocol(), 'any_port' => $host->isAnyPort(), 'any_subdomain' => $host->isAnySubdomain());
 }