/** * Http constructor. * * @param string $location The Zimbra api soap location. * @param RequestFormat $format The request format. */ public function __construct($location, RequestFormat $format = null) { parent::__construct($location); $this->setClient(ClientHttp::instance($this->getLocation())); if ($format instanceof RequestFormat) { $this->getClient()->setFormat($format); } }
/** * Http constructor. * * @param string $location The Zimbra api soap location. * @param RequestFormat $format The request format. */ public function __construct($location, RequestFormat $format = null) { parent::__construct($location); $this->_client = ClientHttp::instance($this->_location); if ($format instanceof RequestFormat) { $this->_client->format($format); } }