Toggle navigation
Hot Examples
PT
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Pesquisar
Página Inicial
Stevebauman
Translation
Contracts
Client
PHP Interface Stevebauman\Translation\Contracts\Client
Exibir arquivo
Open project: stevebauman/translation
Interface Usage Examples
Public Methods
Method
Description
setSource
(
string
$source
= null ) :
mixed
Set source language.
setTarget
(
string
$target
) :
mixed
Set target language.
translate
(
string
$text
) :
mixed
Translate the text.
Method Details
setSource()
public
method
Set source language.
public
setSource
(
string
$source
= null ) :
mixed
$source
string
Language code
return
mixed
setTarget()
public
method
Set target language.
public
setTarget
(
string
$target
) :
mixed
$target
string
Language code
return
mixed
translate()
public
method
Translate the text.
public
translate
(
string
$text
) :
mixed
$text
string
return
mixed