These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | declare(strict_types=1); |
||
3 | |||
4 | namespace Nexendrie\Translation\Resolvers; |
||
5 | |||
6 | /** |
||
7 | * FallbackLocaleResolver |
||
8 | * Fallback resolver when nothing else can be used |
||
9 | * Uses just default language (specified by loader) |
||
10 | * |
||
11 | * @author Jakub Konečný |
||
12 | */ |
||
13 | 1 | class FallbackLocaleResolver implements ILocaleResolver { |
|
14 | 1 | use \Nette\SmartObject; |
|
15 | |||
16 | /** |
||
17 | * Resolve language |
||
18 | * |
||
19 | * @return NULL |
||
20 | */ |
||
21 | function resolve(): ?string { |
||
0 ignored issues
–
show
|
|||
22 | 1 | return NULL; |
|
23 | } |
||
24 | } |
||
25 | ?> |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.