We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| 1 | <?php |
||
| 21 | final class ArrayTranslator implements Translator |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * @var array |
||
| 25 | */ |
||
| 26 | private $messages = []; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Initializes the translator. |
||
| 30 | * |
||
| 31 | * @param array $messages Key value array with the messages |
||
| 32 | */ |
||
| 33 | public function __construct(array $messages) |
||
| 37 | |||
| 38 | /** |
||
| 39 | * {@inheritdoc} |
||
| 40 | */ |
||
| 41 | public function translate(string $message): string |
||
| 49 | } |
||
| 50 |