protected static function createClient() { $config = static::getConfig(); $client = new Client(); $client->configure(['username' => $config['username'], 'password' => $config['password'], 'hostname' => $config['host'], 'port' => $config['port']]); return $client; }