| 1 | <?php |
||
| 15 | class HookRegistry { |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var array |
||
| 19 | */ |
||
| 20 | private $handlers = array(); |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @since 1.0 |
||
| 24 | * |
||
| 25 | * @param Store $store |
||
| 26 | */ |
||
| 27 | 1 | public function __construct( Store $store ) { |
|
| 30 | |||
| 31 | /** |
||
| 32 | * @since 1.1 |
||
| 33 | * |
||
| 34 | * @param string $name |
||
| 35 | * |
||
| 36 | * @return boolean |
||
| 37 | */ |
||
| 38 | public function isRegistered( $name ) { |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @since 1.1 |
||
| 44 | * |
||
| 45 | * @param string $name |
||
| 46 | * |
||
| 47 | * @return Callable|false |
||
| 48 | */ |
||
| 49 | public function getHandlerFor( $name ) { |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @since 1.0 |
||
| 55 | */ |
||
| 56 | public function register() { |
||
| 61 | |||
| 62 | 3 | private function addCallbackHandlers( $store ) { |
|
| 104 | |||
| 105 | } |
||
| 106 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.