1 | <?php |
||
2 | |||
3 | /** |
||
4 | * webtrees-lib: MyArtJaub library for webtrees |
||
5 | * |
||
6 | * @package MyArtJaub\Webtrees |
||
7 | * @subpackage Hooks |
||
8 | * @author Jonathan Jaubart <[email protected]> |
||
9 | * @copyright Copyright (c) 2011-2022, Jonathan Jaubart |
||
10 | * @license http://www.gnu.org/licenses/gpl.html GNU General Public License, version 3 |
||
11 | */ |
||
12 | |||
13 | declare(strict_types=1); |
||
14 | |||
15 | namespace MyArtJaub\Webtrees\Contracts\Hooks; |
||
16 | |||
17 | /** |
||
18 | * Interface for services providing access to the hooks. |
||
19 | */ |
||
20 | interface HookServiceInterface |
||
21 | { |
||
22 | /** |
||
23 | * Select the hook collector to use for a specific hook interface |
||
24 | * |
||
25 | * @template THook of HookInterface |
||
26 | * @param class-string<THook> $hook_interface |
||
0 ignored issues
–
show
Documentation
Bug
introduced
by
![]() |
|||
27 | * @return HookCollectorInterface|NULL |
||
28 | */ |
||
29 | public function use(string $hook_interface): ?HookCollectorInterface; |
||
30 | } |
||
31 |