1 | <?php |
||
22 | class N2WFacade extends Facade |
||
23 | { |
||
24 | /** |
||
25 | * Từ điển hiện tại. |
||
26 | * |
||
27 | * @var null|DictionaryInterface |
||
28 | */ |
||
29 | public static $dictionary; |
||
30 | |||
31 | /** |
||
32 | * {@inheritdoc} |
||
33 | */ |
||
34 | protected static function getFacadeAccessor(): Transformer |
||
41 | |||
42 | /** |
||
43 | * Trả về từ điển mặc định trong config. |
||
44 | * |
||
45 | * @return string |
||
46 | */ |
||
47 | protected static function getDefaultDictionary(): string |
||
51 | |||
52 | /** |
||
53 | * Tạo từ điển. |
||
54 | * |
||
55 | * @param string $dictionary |
||
56 | * @return DictionaryInterface |
||
57 | */ |
||
58 | protected static function makeDictionary(string $dictionary): DictionaryInterface |
||
66 | } |
||
67 |
If a method or function can return multiple different values and unless you are sure that you only can receive a single value in this context, we recommend to add an additional type check:
If this a common case that PHP Analyzer should handle natively, please let us know by opening an issue.