_version = $version; return $this; } /** * @return Version\VersionInterface */ public function getVersion() { return $this->_version; } /** * @param string * @return array|string */ public function doHandshake($headers) { $this->_hands_shook = true; return $this->_version->handshake($headers); } /** * @return bool */ public function isHandshakeComplete() { return $this->_hands_shook; } }