1 | <?php |
||
25 | class N2W extends Component |
||
26 | { |
||
27 | /** |
||
28 | * Hằng khai báo từ điển trong Nam. |
||
29 | */ |
||
30 | const SOUTH_DICTIONARY = 'south'; |
||
31 | |||
32 | /** |
||
33 | * Hằng khai báo từ điển tiêu chuẩn. |
||
34 | */ |
||
35 | const STANDARD_DICTIONARY = 'standard'; |
||
36 | |||
37 | /** |
||
38 | * Từ điển sử dụng để đọc số. |
||
39 | * |
||
40 | * @var string |
||
41 | */ |
||
42 | public $dictionary = self::STANDARD_DICTIONARY; |
||
43 | |||
44 | /** |
||
45 | * Danh sách các từ điển đã thiết lập. |
||
46 | * |
||
47 | * @var array |
||
48 | */ |
||
49 | protected $dictionaries = []; |
||
50 | |||
51 | /** |
||
52 | * {@inheritdoc} |
||
53 | */ |
||
54 | public function init(): void |
||
62 | |||
63 | /** |
||
64 | * Hổ trợ việc gọi các phương thức bên trong transformer. |
||
65 | * |
||
66 | * @param string $name |
||
67 | * @param array $params |
||
68 | * @return mixed |
||
69 | */ |
||
70 | public function __call($name, $params) |
||
80 | |||
81 | /** |
||
82 | * Trả về đối tượng giúp cho việc chuyển đổi số sang chữ số. |
||
83 | * |
||
84 | * @return Transformer |
||
85 | */ |
||
86 | protected function getTransformer(): Transformer |
||
96 | |||
97 | /** |
||
98 | * Thiết lập các từ điển. |
||
99 | * |
||
100 | * @param array $dictionaries |
||
101 | */ |
||
102 | public function setDictionaries(array $dictionaries): void |
||
106 | |||
107 | /** |
||
108 | * Danh sách từ điển mặc định. |
||
109 | * |
||
110 | * @return array |
||
111 | */ |
||
112 | protected function defaultDictionaries(): array |
||
119 | } |
||
120 |
An attempt at access to an undefined property has been detected. This may either be a typographical error or the property has been renamed but there are still references to its old name.
If you really want to allow access to undefined properties, you can define magic methods to allow access. See the php core documentation on Overloading.