src/ServiceRuntime/Internal/RuntimeVersionManager.php
public function getRuntimeClient($versionEndpoint)
    {
        $versionMap = $this->_protocolClient->getVersionMap($versionEndpoint);

        foreach ($this->_supportedVersionList as $factory) {
            if (array_key_exists($factory->getVersion(), $versionMap)) {
                return $factory->createRuntimeClient(
                    $versionMap[$factory->getVersion()]
                );
            }
        }

        throw new \RuntimeException(Resources::INVALID_VERSION_MSG);
    }
public function getRuntimeClient($versionEndpoint)
    {
        $versionMap = $this->_protocolClient->getVersionMap($versionEndpoint);

        foreach ($this->_supportedVersionList as $factory) {
            if (array_key_exists($factory->getVersion(), $versionMap)) {
                return $factory->createRuntimeClient(
                    $versionMap[$factory->getVersion()]
                );
            }
        }

        throw new \RuntimeException(Resources::INVALID_VERSION_MSG);
    }
public function getRuntimeClient ( $ versionEndpoint ) { $ versionMap = $ this -> _protocolClient -> getVersionMap ( $ versionEndpoint ) ; foreach ( $ this -> _supportedVersionList as $ factory ) { if ( array_key_exists ( $ factory -> getVersion ( ) , $ versionMap ) ) { return $ factory -> createRuntimeClient ( $ versionMap [ $ factory -> getVersion ( ) ] ) ; } } throw new \ RuntimeException ( Resources :: INVALID_VERSION_MSG ) ; }
Gets the runtime client.

@param string $versionEndpoint The endpoint's version

@return Protocol1RuntimeClient
Gets the runtime client .