1 | <?php |
||
14 | class Dictionary implements DictionaryInterface |
||
15 | { |
||
16 | /** |
||
17 | * The dictionary path. |
||
18 | * |
||
19 | * @var string |
||
20 | */ |
||
21 | protected $path; |
||
22 | |||
23 | /** |
||
24 | * Dictionary constructor. |
||
25 | * |
||
26 | * @param string $path |
||
27 | */ |
||
28 | 4 | public function __construct($path) |
|
32 | |||
33 | /** |
||
34 | * Returns the name of shorthand dictionary. |
||
35 | * |
||
36 | * @param string $name |
||
37 | * |
||
38 | * @return array |
||
39 | */ |
||
40 | 1 | public function shorthandDict($name) |
|
44 | |||
45 | /** |
||
46 | * Returns the name of unicode dictionary. |
||
47 | * |
||
48 | * @param string $name |
||
49 | * |
||
50 | * @return array |
||
51 | */ |
||
52 | 2 | public function unicodeDict($name) |
|
58 | |||
59 | /** |
||
60 | * Returns the name of html dictionary. |
||
61 | * |
||
62 | * @param string $name |
||
63 | * |
||
64 | * @return array |
||
65 | */ |
||
66 | 1 | public function htmlDict($name) |
|
72 | |||
73 | /** |
||
74 | * Returns the dictionary. |
||
75 | * |
||
76 | * @param string $name |
||
77 | * |
||
78 | * @throws FileNotFoundException |
||
79 | * |
||
80 | * @return array |
||
81 | */ |
||
82 | 4 | protected function getDictByName($name) |
|
94 | } |
||
95 |