Toggle navigation
Hot Examples
ZH
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
搜索
Home
Stevebauman
Translation
Clients
GoogleTranslate
PHP Class Stevebauman\Translation\Clients\GoogleTranslate
Inheritance:
implements
Stevebauman\Translation\Contracts\Client
显示文件
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