@@ -1,14 +1,14 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | 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 | - */ |
|
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 | 12 | |
13 | 13 | declare(strict_types=1); |
14 | 14 | |
@@ -19,11 +19,11 @@ discard block |
||
19 | 19 | */ |
20 | 20 | interface FamilyDatatablesExtenderInterface extends HookInterface |
21 | 21 | { |
22 | - /** |
|
23 | - * Get the columns to be added to families datatables |
|
24 | - * |
|
25 | - * @param iterable<\Fisharebest\Webtrees\Family> $records |
|
26 | - * @return array<string, array<string, array<string, mixed>>> |
|
27 | - */ |
|
28 | - public function familyColumns(iterable $records): array; |
|
22 | + /** |
|
23 | + * Get the columns to be added to families datatables |
|
24 | + * |
|
25 | + * @param iterable<\Fisharebest\Webtrees\Family> $records |
|
26 | + * @return array<string, array<string, array<string, mixed>>> |
|
27 | + */ |
|
28 | + public function familyColumns(iterable $records): array; |
|
29 | 29 | } |
@@ -1,14 +1,14 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | 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 | - */ |
|
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 | 12 | |
13 | 13 | declare(strict_types=1); |
14 | 14 | |
@@ -21,46 +21,46 @@ discard block |
||
21 | 21 | */ |
22 | 22 | interface HookCollectorInterface |
23 | 23 | { |
24 | - /** |
|
25 | - * Get the unique internal name for the hook collector |
|
26 | - * |
|
27 | - * @return string |
|
28 | - */ |
|
29 | - public function name(): string; |
|
24 | + /** |
|
25 | + * Get the unique internal name for the hook collector |
|
26 | + * |
|
27 | + * @return string |
|
28 | + */ |
|
29 | + public function name(): string; |
|
30 | 30 | |
31 | - /** |
|
32 | - * Get the title to be displayed to idenfity the hook collector |
|
33 | - * |
|
34 | - * @return string |
|
35 | - */ |
|
36 | - public function title(): string; |
|
31 | + /** |
|
32 | + * Get the title to be displayed to idenfity the hook collector |
|
33 | + * |
|
34 | + * @return string |
|
35 | + */ |
|
36 | + public function title(): string; |
|
37 | 37 | |
38 | - /** |
|
39 | - * Get a short description for the hook collector |
|
40 | - * |
|
41 | - * @return string |
|
42 | - */ |
|
43 | - public function description(): string; |
|
38 | + /** |
|
39 | + * Get a short description for the hook collector |
|
40 | + * |
|
41 | + * @return string |
|
42 | + */ |
|
43 | + public function description(): string; |
|
44 | 44 | |
45 | - /** |
|
46 | - * Get the interface collated by the hook collector |
|
47 | - * |
|
48 | - * @return class-string |
|
49 | - */ |
|
50 | - public function hookInterface(): string; |
|
45 | + /** |
|
46 | + * Get the interface collated by the hook collector |
|
47 | + * |
|
48 | + * @return class-string |
|
49 | + */ |
|
50 | + public function hookInterface(): string; |
|
51 | 51 | |
52 | - /** |
|
53 | - * Register a hook instance in the hook collector |
|
54 | - * |
|
55 | - * @param HookInterface $hook_instance |
|
56 | - * @param int $order |
|
57 | - */ |
|
58 | - public function register(HookInterface $hook_instance, int $order): void; |
|
52 | + /** |
|
53 | + * Register a hook instance in the hook collector |
|
54 | + * |
|
55 | + * @param HookInterface $hook_instance |
|
56 | + * @param int $order |
|
57 | + */ |
|
58 | + public function register(HookInterface $hook_instance, int $order): void; |
|
59 | 59 | |
60 | - /** |
|
61 | - * Get the list of hooks registered against the hook collector |
|
62 | - * |
|
63 | - * @return Collection<HookInterface> |
|
64 | - */ |
|
65 | - public function hooks(): Collection; |
|
60 | + /** |
|
61 | + * Get the list of hooks registered against the hook collector |
|
62 | + * |
|
63 | + * @return Collection<HookInterface> |
|
64 | + */ |
|
65 | + public function hooks(): Collection; |
|
66 | 66 | } |
@@ -1,14 +1,14 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | 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 | - */ |
|
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 | 12 | |
13 | 13 | declare(strict_types=1); |
14 | 14 | |
@@ -19,11 +19,11 @@ discard block |
||
19 | 19 | */ |
20 | 20 | interface SosaMissingDatatablesExtenderInterface extends HookInterface |
21 | 21 | { |
22 | - /** |
|
23 | - * Get the columns to be added to missing ancestors datatables |
|
24 | - * |
|
25 | - * @param iterable<\Fisharebest\Webtrees\Individual> $records |
|
26 | - * @return array<string, array<string, array<string, mixed>>> |
|
27 | - */ |
|
28 | - public function sosaMissingColumns(iterable $records): array; |
|
22 | + /** |
|
23 | + * Get the columns to be added to missing ancestors datatables |
|
24 | + * |
|
25 | + * @param iterable<\Fisharebest\Webtrees\Individual> $records |
|
26 | + * @return array<string, array<string, array<string, mixed>>> |
|
27 | + */ |
|
28 | + public function sosaMissingColumns(iterable $records): array; |
|
29 | 29 | } |
@@ -1,14 +1,14 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | 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 | - */ |
|
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 | 12 | |
13 | 13 | declare(strict_types=1); |
14 | 14 | |
@@ -21,10 +21,10 @@ discard block |
||
21 | 21 | */ |
22 | 22 | interface HookInterface |
23 | 23 | { |
24 | - /** |
|
25 | - * Get the module attached to the hook |
|
26 | - * |
|
27 | - * @return ModuleInterface |
|
28 | - */ |
|
29 | - public function module(): ModuleInterface; |
|
24 | + /** |
|
25 | + * Get the module attached to the hook |
|
26 | + * |
|
27 | + * @return ModuleInterface |
|
28 | + */ |
|
29 | + public function module(): ModuleInterface; |
|
30 | 30 | } |
@@ -1,14 +1,14 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | 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 | - */ |
|
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 | 12 | |
13 | 13 | declare(strict_types=1); |
14 | 14 | |
@@ -21,21 +21,21 @@ discard block |
||
21 | 21 | */ |
22 | 22 | interface FactSourceTextExtenderInterface extends HookInterface |
23 | 23 | { |
24 | - /** |
|
25 | - * Insert some content before the source citation title. |
|
26 | - * |
|
27 | - * @param Tree $tree |
|
28 | - * @param \Fisharebest\Webtrees\Fact|array<array<\Fisharebest\Webtrees\Contracts\ElementInterface|string>> $fact |
|
29 | - * @return string |
|
30 | - */ |
|
31 | - public function factSourcePrepend(Tree $tree, $fact): string; |
|
24 | + /** |
|
25 | + * Insert some content before the source citation title. |
|
26 | + * |
|
27 | + * @param Tree $tree |
|
28 | + * @param \Fisharebest\Webtrees\Fact|array<array<\Fisharebest\Webtrees\Contracts\ElementInterface|string>> $fact |
|
29 | + * @return string |
|
30 | + */ |
|
31 | + public function factSourcePrepend(Tree $tree, $fact): string; |
|
32 | 32 | |
33 | - /** |
|
34 | - * Insert some content after the source citation title. |
|
35 | - * |
|
36 | - * @param Tree $tree |
|
37 | - * @param \Fisharebest\Webtrees\Fact|array<array<\Fisharebest\Webtrees\Contracts\ElementInterface|string>> $fact |
|
38 | - * @return string |
|
39 | - */ |
|
40 | - public function factSourceAppend(Tree $tree, $fact): string; |
|
33 | + /** |
|
34 | + * Insert some content after the source citation title. |
|
35 | + * |
|
36 | + * @param Tree $tree |
|
37 | + * @param \Fisharebest\Webtrees\Fact|array<array<\Fisharebest\Webtrees\Contracts\ElementInterface|string>> $fact |
|
38 | + * @return string |
|
39 | + */ |
|
40 | + public function factSourceAppend(Tree $tree, $fact): string; |
|
41 | 41 | } |
@@ -1,14 +1,14 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | 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 | - */ |
|
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 | 12 | |
13 | 13 | declare(strict_types=1); |
14 | 14 | |
@@ -19,11 +19,11 @@ discard block |
||
19 | 19 | */ |
20 | 20 | interface SosaFamilyDatatablesExtenderInterface extends HookInterface |
21 | 21 | { |
22 | - /** |
|
23 | - * Get the columns to be added to sosa families datatables |
|
24 | - * |
|
25 | - * @param iterable<\Fisharebest\Webtrees\Family> $records |
|
26 | - * @return array<string, array<string, array<string, mixed>>> |
|
27 | - */ |
|
28 | - public function sosaFamilyColumns(iterable $records): array; |
|
22 | + /** |
|
23 | + * Get the columns to be added to sosa families datatables |
|
24 | + * |
|
25 | + * @param iterable<\Fisharebest\Webtrees\Family> $records |
|
26 | + * @return array<string, array<string, array<string, mixed>>> |
|
27 | + */ |
|
28 | + public function sosaFamilyColumns(iterable $records): array; |
|
29 | 29 | } |
@@ -1,14 +1,14 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | 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 | - */ |
|
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 | 12 | |
13 | 13 | declare(strict_types=1); |
14 | 14 | |
@@ -21,23 +21,23 @@ discard block |
||
21 | 21 | */ |
22 | 22 | interface RecordNameTextExtenderInterface extends HookInterface |
23 | 23 | { |
24 | - /** |
|
25 | - * Insert some content before the record name text. |
|
26 | - * |
|
27 | - * @param GedcomRecord $record Gedcom record |
|
28 | - * @param bool $use_long Use the long text extender format |
|
29 | - * @param string $size Prepend size |
|
30 | - * @return string |
|
31 | - */ |
|
32 | - public function recordNamePrepend(GedcomRecord $record, bool $use_long = false, string $size = ''): string; |
|
24 | + /** |
|
25 | + * Insert some content before the record name text. |
|
26 | + * |
|
27 | + * @param GedcomRecord $record Gedcom record |
|
28 | + * @param bool $use_long Use the long text extender format |
|
29 | + * @param string $size Prepend size |
|
30 | + * @return string |
|
31 | + */ |
|
32 | + public function recordNamePrepend(GedcomRecord $record, bool $use_long = false, string $size = ''): string; |
|
33 | 33 | |
34 | - /** |
|
35 | - * Insert some content after the record name text. |
|
36 | - * |
|
37 | - * @param GedcomRecord $record Gedcom record |
|
38 | - * @param bool $use_long Use the long text extender format |
|
39 | - * @param string $size Append size |
|
40 | - * @return string |
|
41 | - */ |
|
42 | - public function recordNameAppend(GedcomRecord $record, bool $use_long = false, string $size = ''): string; |
|
34 | + /** |
|
35 | + * Insert some content after the record name text. |
|
36 | + * |
|
37 | + * @param GedcomRecord $record Gedcom record |
|
38 | + * @param bool $use_long Use the long text extender format |
|
39 | + * @param string $size Append size |
|
40 | + * @return string |
|
41 | + */ |
|
42 | + public function recordNameAppend(GedcomRecord $record, bool $use_long = false, string $size = ''): string; |
|
43 | 43 | } |
@@ -1,14 +1,14 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | 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 | - */ |
|
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 | 12 | |
13 | 13 | declare(strict_types=1); |
14 | 14 | |
@@ -19,12 +19,12 @@ discard block |
||
19 | 19 | */ |
20 | 20 | interface HookServiceInterface |
21 | 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 |
|
27 | - * @return HookCollectorInterface|NULL |
|
28 | - */ |
|
29 | - public function use(string $hook_interface): ?HookCollectorInterface; |
|
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 |
|
27 | + * @return HookCollectorInterface|NULL |
|
28 | + */ |
|
29 | + public function use(string $hook_interface): ?HookCollectorInterface; |
|
30 | 30 | } |
@@ -1,14 +1,14 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | 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 | - */ |
|
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 | 12 | |
13 | 13 | declare(strict_types=1); |
14 | 14 | |
@@ -19,11 +19,11 @@ discard block |
||
19 | 19 | */ |
20 | 20 | interface IndividualDatatablesExtenderInterface extends HookInterface |
21 | 21 | { |
22 | - /** |
|
23 | - * Get the columns to be added to individuals datatables |
|
24 | - * |
|
25 | - * @param iterable<\Fisharebest\Webtrees\Individual> $records |
|
26 | - * @return array<string, array<string, array<string, mixed>>> |
|
27 | - */ |
|
28 | - public function individualColumns(iterable $records): array; |
|
22 | + /** |
|
23 | + * Get the columns to be added to individuals datatables |
|
24 | + * |
|
25 | + * @param iterable<\Fisharebest\Webtrees\Individual> $records |
|
26 | + * @return array<string, array<string, array<string, mixed>>> |
|
27 | + */ |
|
28 | + public function individualColumns(iterable $records): array; |
|
29 | 29 | } |