private static function staticTranslate($source, $target, $string)
    {
        self::checkStaticInstance();
        try {
            $result = self::$staticInstance
                ->setSource($source)
                ->setTarget($target)
                ->translate($string);
        } catch (Exception $e) {
            throw $e;
        }

        return $result;
    }
private static function staticTranslate($source, $target, $string)
    {
        self::checkStaticInstance();
        try {
            $result = self::$staticInstance
                ->setSource($source)
                ->setTarget($target)
                ->translate($string);
        } catch (Exception $e) {
            throw $e;
        }

        return $result;
    }
private static function staticTranslate ( $ source , $ target , $ string ) { self :: checkStaticInstance ( ) ; try { $ result = self :: $ staticInstance -> setSource ( $ source ) -> setTarget ( $ target ) -> translate ( $ string ) ; } catch ( Exception $ e ) { throw $ e ; } return $ result ; }
Translate text statically.

This can be called from static method translate() using __callStatic() magic method.
Use TranslateClient::translate($source, $target, $string) instead.

@param string $source Source language
@param string $target Target language
@param string $string Text to translate

@throws InvalidArgumentException If the provided argument is not of type 'string'
@throws ErrorException           If the HTTP request fails
@throws UnexpectedValueException If received data cannot be decoded

@return string|bool Translated text
Translate text statically .