PHP Interface Stevebauman\Translation\Contracts\Client

Mostra file 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