private function setProtocol(array $config) { $config['protocol'] = isset($config['protocol']) ? $config['protocol'] : 'TCP'; return $config; }