/** @return Client */ public static function getClient() { $client = new Client(); $client->setAdapter(new Adapter\Curl()); $client->addMiddleware(new Middleware\Core()); $client->addMiddleware(new Middleware\Json()); return $client; }
/** @return Client */ public function getClient() { if (!$this->client) { $this->client = Client::getClient(); } return $this->client; }
public function getClient() { if (!$this->client) { $this->client = \SoftLayer\Http\Client::getClient(); } return $this->client; }