1 | <?php |
||
20 | class ArrayLoader extends BaseArrayLoader implements TranslationLoaderInterface |
||
21 | { |
||
22 | protected $locale; |
||
23 | protected $translator; |
||
24 | |||
25 | /** |
||
26 | * Constructor. |
||
27 | * |
||
28 | * @param Translator $translator |
||
29 | */ |
||
30 | 5 | public function __construct(Translator $translator) |
|
34 | |||
35 | /** |
||
36 | * Sets a locale. |
||
37 | * |
||
38 | * @param string $locale |
||
39 | * |
||
40 | * @return ArrayLoader |
||
41 | */ |
||
42 | 5 | public function setLocale($locale) |
|
48 | |||
49 | /** |
||
50 | * {@inheritdoc} |
||
51 | */ |
||
52 | 2 | protected function walkInternal(&$value, $nouse) |
|
58 | |||
59 | /** |
||
60 | * Walks by locale internal processing. |
||
61 | * |
||
62 | * @SuppressWarnings(PHPMD.UnusedFormalParameter) |
||
63 | * @param string &$value |
||
64 | * @param string $nouse |
||
65 | * |
||
66 | * @return void |
||
67 | */ |
||
68 | 4 | protected function walkByLocaleInternal(&$value, $nouse) |
|
74 | |||
75 | /** |
||
76 | * {@inheritdoc} |
||
77 | */ |
||
78 | 5 | protected function getInternalMethod() |
|
86 | } |
||
87 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.