Prado\Util\TRpcClient::create PHP 메소드

create() 공개 정적인 메소드

Creates an instance of the requested RPC client type
public static create ( $type, $serverUrl, $isNotification = false ) : TRpcClient
리턴 TRpcClient instance
    public static function create($type, $serverUrl, $isNotification = false)
    {
        if (($_handler = constant('TRpcClientTypesEnumerable::' . strtoupper($type))) === null) {
            throw new TApplicationException('rpcclient_unsupported_handler');
        }
        return new $_handler($serverUrl, $isNotification);
    }