1 | <?php |
||
14 | class HookRegistry { |
||
15 | |||
16 | /** |
||
17 | * @var array |
||
18 | */ |
||
19 | private $handlers = array(); |
||
20 | |||
21 | /** |
||
22 | * @since 1.0 |
||
23 | * |
||
24 | * @param array $options |
||
25 | */ |
||
26 | 10 | public function __construct( array $options ) { |
|
29 | |||
30 | /** |
||
31 | * @since 1.0 |
||
32 | */ |
||
33 | 9 | public function register() { |
|
38 | |||
39 | /** |
||
40 | * @since 1.0 |
||
41 | * |
||
42 | * @param string $name |
||
43 | * |
||
44 | * @return boolean |
||
45 | */ |
||
46 | 1 | public function isRegistered( $name ) { |
|
49 | |||
50 | /** |
||
51 | * @since 1.0 |
||
52 | * |
||
53 | * @param string $name |
||
54 | * |
||
55 | * @return Callable|false |
||
56 | */ |
||
57 | 1 | public function getHandlerFor( $name ) { |
|
60 | |||
61 | 10 | private function addCallbackHandlers( $options ) { |
|
71 | |||
72 | } |
||
73 |