1 | <?php |
||
23 | class N2WFacade extends Facade |
||
24 | { |
||
25 | /** |
||
26 | * Từ điển hiện tại. |
||
27 | * |
||
28 | * @var null|DictionaryInterface |
||
29 | */ |
||
30 | public static $dictionary; |
||
31 | |||
32 | /** |
||
33 | * {@inheritdoc} |
||
34 | */ |
||
35 | protected static function getFacadeAccessor(): Transformer |
||
44 | |||
45 | /** |
||
46 | * Trả về từ điển mặc định trong config. |
||
47 | * |
||
48 | * @return string |
||
49 | */ |
||
50 | protected static function getDefaultDictionary(): string |
||
54 | |||
55 | /** |
||
56 | * Tạo từ điển. |
||
57 | * |
||
58 | * @param string $dictionary |
||
59 | * @return DictionaryInterface |
||
60 | */ |
||
61 | protected static function makeDictionary(string $dictionary): DictionaryInterface |
||
69 | |||
70 | /** |
||
71 | * Throw an Exception when the config is not exist |
||
72 | * Please run: php artisan vendor:publish --provider="PHPViet\Laravel\NumberToWords\ServiceProvider" --tag="config" |
||
73 | * |
||
74 | * @throws LogicException |
||
75 | */ |
||
76 | protected static function checkConfigIsPublished() |
||
82 | } |
||
83 |
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.