PHP Class ManaPHP\I18n\Translation

Inheritance: extends ManaPHP\Component, implements ManaPHP\I18n\TranslationInterface
Show file Open project: manaphp/manaphp

Protected Properties

Property Type Description
$_files array
$_language string
$_messages array

Public Methods

Method Description
__construct ( array $options = [] ) Translation constructor.
translate ( string $messageId, array $bind = [] ) : string

Method Details

__construct() public method

Translation constructor.
public __construct ( array $options = [] )
$options array

translate() public method

public translate ( string $messageId, array $bind = [] ) : string
$messageId string
$bind array
return string

Property Details

$_files protected property

protected array $_files
return array

$_language protected property

protected string $_language
return string

$_messages protected property

protected array $_messages
return array