PHP Class Stevebauman\Translation\Clients\GoogleTranslate

Inheritance: implements Stevebauman\Translation\Contracts\Client
Exibir arquivo Open project: stevebauman/translation

Protected Properties

Property Type Description
$client Stichoza\GoogleTranslate\TranslateClient

Public Methods

Method Description
__construct ( TranslateClient $client )
setSource ( $source = null )
setTarget ( $target )
translate ( $text )

Method Details

__construct() public method

public __construct ( TranslateClient $client )
$client Stichoza\GoogleTranslate\TranslateClient

setSource() public method

public setSource ( $source = null )

setTarget() public method

public setTarget ( $target )

translate() public method

public translate ( $text )

Property Details

$client protected_oe property

protected TranslateClient,Stichoza\GoogleTranslate $client
return Stichoza\GoogleTranslate\TranslateClient