src/Profile/Factory.php
public static function get($version)
    {
        if (!isset(self::$profiles[$version])) {
            throw new ClientException("Unknown server profile: '$version'.");
        }

        $profile = self::$profiles[$version];

        return new $profile();
    }
public static function get($version)
    {
        if (!isset(self::$profiles[$version])) {
            throw new ClientException("Unknown server profile: '$version'.");
        }

        $profile = self::$profiles[$version];

        return new $profile();
    }
public static function get ( $ version ) { if ( ! isset ( self :: $ profiles [ $ version ] ) ) { throw new ClientException ( "Unknown server profile: '$version'." ) ; } $ profile = self :: $ profiles [ $ version ] ; return new $ profile ( ) ; }
Returns the specified server profile.

@param string $version Profile version or alias.

@throws ClientException

@return ProfileInterface
Returns the specified server profile .