TranslationServiceDecorator
TranslationServiceDecorator.php
:
14
Abstract
Implements
TranslationService
Properties¶
$innerService
¶
TranslationServiceDecorator.php
:
16
|
|
|
Methods¶
__construct()
¶
TranslationServiceDecorator.php
:
18
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $innerService | TranslationService | - | - |
translate()
¶
TranslationServiceDecorator.php
:
23
Translate.
|
|
|
Translate a Translation value object.
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $translation | Translation | - | - |
| $locale | mixed | - | - |
Return values
string
translateString()
¶
TranslationServiceDecorator.php
:
30
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