1 | <?php namespace BuildR\ClassLoader\Modules\Map; |
||
19 | class MapClassLoaderModule extends AbstractClassLoaderModule { |
||
20 | |||
21 | /** |
||
22 | * @type int |
||
23 | */ |
||
24 | protected $priority = 10; |
||
25 | |||
26 | /** |
||
27 | * @type array |
||
28 | */ |
||
29 | private $registeredMaps = []; |
||
30 | |||
31 | /** |
||
32 | * @inheritDoc |
||
33 | * @codeCoverageIgnore |
||
34 | */ |
||
35 | public static function getName() { |
||
38 | |||
39 | /** |
||
40 | * @inheritDoc |
||
41 | * @codeCoverageIgnore |
||
42 | */ |
||
43 | public function getPriority() { |
||
46 | |||
47 | /** |
||
48 | * @inheritDoc |
||
49 | * @codeCoverageIgnore |
||
50 | */ |
||
51 | public function onRegistered() {} |
||
52 | |||
53 | /** |
||
54 | * @inheritDoc |
||
55 | */ |
||
56 | 4 | public function load($className) { |
|
75 | |||
76 | /** |
||
77 | * Register a new map in the module |
||
78 | * |
||
79 | * @param string $mapName The map unique name |
||
80 | * @param array $map The actual class map |
||
81 | * |
||
82 | * @throws \BuildR\ClassLoader\Modules\Map\MapModuleException |
||
83 | */ |
||
84 | 5 | public function registerMap($mapName, $map) { |
|
91 | |||
92 | /** |
||
93 | * Remove the given map from the loader |
||
94 | * |
||
95 | * @param string $mapName The map name |
||
96 | * |
||
97 | * @return bool |
||
98 | */ |
||
99 | 1 | public function removeMap($mapName) { |
|
108 | |||
109 | /** |
||
110 | * Determines that the given map is registered or not |
||
111 | * |
||
112 | * @param string $map The map name |
||
113 | * |
||
114 | * @return bool |
||
115 | */ |
||
116 | 5 | public function mapIsRegistered($map) { |
|
119 | |||
120 | } |
||
121 |