1 | <?php |
||
9 | class Translator extends BaseTranslator |
||
10 | { |
||
11 | /** |
||
12 | * @param string $id |
||
13 | * @param string $locale |
||
14 | * @param string $domain |
||
15 | * @throws \Exception |
||
16 | */ |
||
17 | protected function assertTranslationExists($id, $locale, $domain = 'messages') |
||
25 | |||
26 | /** |
||
27 | * @param string|null $locale |
||
28 | * @return MessageCatalogue |
||
29 | */ |
||
30 | public function getCatalogue($locale = null) |
||
34 | |||
35 | /** |
||
36 | * @param string $locale |
||
37 | * @param ConfigCacheInterface $cache |
||
38 | * @throws \Exception |
||
39 | */ |
||
40 | public function dumpCatalogue($locale, ConfigCacheInterface $cache) |
||
54 | |||
55 | /** |
||
56 | * @param string $id |
||
57 | * @param array $parameters |
||
58 | * @param string $domain |
||
59 | * @param string $locale |
||
60 | * @return string |
||
61 | */ |
||
62 | public function trans($id, array $parameters = array(), $domain = null, $locale = null) |
||
68 | |||
69 | /** |
||
70 | * @param string $id |
||
71 | * @param int $number |
||
72 | * @param array $parameters |
||
73 | * @param string $domain |
||
74 | * @param string $locale |
||
75 | * @return string |
||
76 | * @throws \Exception |
||
77 | */ |
||
78 | public function transChoice($id, $number, array $parameters = array(), $domain = null, $locale = null) |
||
84 | } |
||
85 |
This check looks for access to methods that are not accessible from the current context.
If you need to make a method accessible to another context you can raise its visibility level in the defining class.