Method |
Description |
|
__construct ( string $id = null, string $value = null ) |
|
|
__toString ( ) |
Runs translate to avoid the need of calling translate as a finishing method |
|
allowsCallOfMethod ( string $methodName ) : boolean |
All methods are considered safe |
|
arguments ( array $arguments ) : TranslationParameterToken |
Set the arguments. |
|
id ( string $id ) : TranslationParameterToken |
Set the id. |
|
injectTranslator ( Translator $translator ) |
Inject the translator into the token. |
|
locale ( string $locale ) : TranslationParameterToken |
Set the locale. |
|
package ( string $package ) : TranslationParameterToken |
Set the package. |
|
quantity ( mixed $quantity ) : TranslationParameterToken |
Set the quantity. |
|
source ( string $source ) : TranslationParameterToken |
Set the source. |
|
translate ( array $overrides = [] ) : string |
Translate according to currently collected parameters |
|
value ( string $value ) : TranslationParameterToken |
Set the original translation value (the untranslated source string). |
|