1 | <?php namespace BuildR\ClassLoader\Modules\PEAR; |
||
19 | class PEARClassLoaderModule extends AbstractClassLoaderModule { |
||
20 | |||
21 | /** |
||
22 | * @type int |
||
23 | */ |
||
24 | protected $priority = 50; |
||
25 | |||
26 | /** |
||
27 | * @type array |
||
28 | */ |
||
29 | private $registeredPrefixes = []; |
||
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 | 2 | public function load($className) { |
|
81 | |||
82 | /** |
||
83 | * Register a new prefix in this module |
||
84 | * |
||
85 | * @param string $prefix |
||
86 | * @param string $basePath |
||
87 | * |
||
88 | * @throws \BuildR\ClassLoader\Modules\PEAR\PEARModuleException |
||
89 | */ |
||
90 | 4 | public function registerPrefix($prefix, $basePath) { |
|
100 | |||
101 | /** |
||
102 | * Remove a registered prefix from the module |
||
103 | * |
||
104 | * @param string $prefix The prefix name |
||
105 | */ |
||
106 | 1 | public function unRegisterPrefix($prefix) { |
|
113 | |||
114 | /** |
||
115 | * Determines that the given prefix is registered in this module |
||
116 | * |
||
117 | * @param string $prefix The prefix name |
||
118 | * |
||
119 | * @return bool |
||
120 | */ |
||
121 | 4 | public function prefixIsRegistered($prefix) { |
|
130 | |||
131 | } |
||
132 |