Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Stevebauman
Translation
Clients
GoogleTranslate
PHP Class Stevebauman\Translation\Clients\GoogleTranslate
Inheritance:
implements
Stevebauman\Translation\Contracts\Client
Show file
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 property
protected
TranslateClient,Stichoza\GoogleTranslate
$client
return
Stichoza\GoogleTranslate\TranslateClient