1 | <?php |
||
8 | class Map |
||
9 | { |
||
10 | /** |
||
11 | * The map dictionary. |
||
12 | * |
||
13 | * @var array |
||
14 | */ |
||
15 | protected $map; |
||
16 | |||
17 | /** |
||
18 | * Initializes the instance. |
||
19 | */ |
||
20 | 1 | public function __construct() |
|
24 | |||
25 | /** |
||
26 | * Add a parsed CHM file to this map. |
||
27 | * |
||
28 | * @param string $name The name to give the new CHM instance. |
||
29 | * @param \CHMLib\CHM $chm The parsed CHM file. |
||
30 | */ |
||
31 | 1 | public function add($name, CHM $chm) |
|
35 | |||
36 | /** |
||
37 | * Get a parsed CHM file given its name. |
||
38 | * |
||
39 | * @param string $name The mapped name. |
||
40 | * |
||
41 | * @return \CHMLib\CHM|null |
||
42 | */ |
||
43 | 1 | public function get($name) |
|
47 | } |
||
48 |