Total Complexity | 2 |
Total Lines | 16 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | final class ArrayAttributeTranslator implements AttributeTranslatorInterface |
||
13 | { |
||
14 | /** |
||
15 | * @param array $translations Translations array where each key is an attribute name and the corresponding value is |
||
16 | * a translation. |
||
17 | * |
||
18 | * @psalm-param array<string,string> $translations |
||
19 | */ |
||
20 | public function __construct( |
||
23 | } |
||
24 | |||
25 | public function translate(string $attribute): string |
||
30 |