Processor¶
-
class
I18Next\Locale\
Processor
¶ Source: src/I18Next/Locale/Processor.php#13
Summary¶
Methods¶
public __construct($translations)
public process($key, $parameters, $context)
private getKeyNamespace($key)
private getCountFromParameters($parameters)
private getContextFromParameters($parameters, $context)
private getNamespaceFromParameters($parameters)
private processKeyForNamespaces($key, $keyNamespaceFromParameters)
Properties¶
Methods¶
-
public
I18Next\Locale\Processor::
__construct
($translations)¶ - Processor constructor.
Source: Parameters: - $translations (
I18Next\Locale\Translations
)
- $translations (
-
public
I18Next\Locale\Processor::
process
($key, $parameters=null, $context=null)¶ Source: Parameters: - $key (string)
- $parameters (array | null)
- $context (string | null)
Returns: string | null