/** * 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); } }
/** * 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); } }
public function __construct($location) { parent::__construct($location); $this->setClient(new LocalClientHttp($this->getLocation())); }
public function __construct($location) { parent::__construct($location); $this->_client = new LocalClientHttp($this->_location); }