TranslationServiceDecorator
TranslationServiceDecorator.php
:
14
Abstract
Implements
TranslationService
Properties¶
$innerService
¶
TranslationServiceDecorator.php
:
17
|
|
Methods¶
__construct()
¶
TranslationServiceDecorator.php
:
19
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$innerService | TranslationService | - | - |
translate()
¶
TranslationServiceDecorator.php
:
24
Translate.
|
|
Translate a Translation value object.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$translation | Translation | - | - |
$locale | mixed | - | - |
Return values
string
translateString()
¶
TranslationServiceDecorator.php
:
31
Translate string.
|
|
Translate a string. Strings could be useful for the simplest cases. Usually you will always use Translation value objects for this.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$translation | mixed | - | - |
$locale | mixed | - | - |
Return values
string