MachineTranslation
extends BaseModel
Table of Contents
Properties
-
$sourceLanguageId
: string
-
$strings
: array<string|int, string>
-
$targetLanguageId
: string
-
$translations
: array<string|int, string>
Methods
-
__construct()
: mixed
-
getSourceLanguageId()
: string
-
getStrings()
: array<string|int, mixed>|array<string|int, string>
-
getTargetLanguageId()
: string
-
getTranslations()
: array<string|int, mixed>|array<string|int, string>
-
setSourceLanguageId()
: void
-
setStrings()
: void
-
setTargetLanguageId()
: void
-
setTranslations()
: void
$sourceLanguageId
protected
string
$sourceLanguageId
$strings
protected
array<string|int, string>
$strings
$targetLanguageId
protected
string
$targetLanguageId
$translations
protected
array<string|int, string>
$translations
__construct()
public
__construct([array<string|int, mixed> $data = [] ]) : mixed
Parameters
-
$data
: array<string|int, mixed>
= []
-
getSourceLanguageId()
public
getSourceLanguageId() : string
getStrings()
public
getStrings() : array<string|int, mixed>|array<string|int, string>
Return values
array<string|int, mixed>|array<string|int, string>
getTargetLanguageId()
public
getTargetLanguageId() : string
getTranslations()
public
getTranslations() : array<string|int, mixed>|array<string|int, string>
Return values
array<string|int, mixed>|array<string|int, string>
setSourceLanguageId()
public
setSourceLanguageId(string $sourceLanguageId) : void
Parameters
-
$sourceLanguageId
: string
-
setStrings()
public
setStrings(array<string|int, mixed>|array<string|int, string> $strings) : void
Parameters
-
$strings
: array<string|int, mixed>|array<string|int, string>
-
setTargetLanguageId()
public
setTargetLanguageId(string $targetLanguageId) : void
Parameters
-
$targetLanguageId
: string
-
setTranslations()
public
setTranslations(array<string|int, mixed>|array<string|int, string> $translations) : void
Parameters
-
$translations
: array<string|int, mixed>|array<string|int, string>
-