xref: /webtrees/app/Contracts/CustomTagInterface.php (revision d11be7027e34e3121be11cc025421873364403f9)
1864236f5SGreg Roach<?php
2864236f5SGreg Roach
3864236f5SGreg Roach/**
4864236f5SGreg Roach * webtrees: online genealogy
5*d11be702SGreg Roach * Copyright (C) 2023 webtrees development team
6864236f5SGreg Roach * This program is free software: you can redistribute it and/or modify
7864236f5SGreg Roach * it under the terms of the GNU General Public License as published by
8864236f5SGreg Roach * the Free Software Foundation, either version 3 of the License, or
9864236f5SGreg Roach * (at your option) any later version.
10864236f5SGreg Roach * This program is distributed in the hope that it will be useful,
11864236f5SGreg Roach * but WITHOUT ANY WARRANTY; without even the implied warranty of
12864236f5SGreg Roach * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13864236f5SGreg Roach * GNU General Public License for more details.
14864236f5SGreg Roach * You should have received a copy of the GNU General Public License
15864236f5SGreg Roach * along with this program. If not, see <https://www.gnu.org/licenses/>.
16864236f5SGreg Roach */
17864236f5SGreg Roach
18864236f5SGreg Roachdeclare(strict_types=1);
19864236f5SGreg Roach
20864236f5SGreg Roachnamespace Fisharebest\Webtrees\Contracts;
21864236f5SGreg Roach
22864236f5SGreg Roach/**
23864236f5SGreg Roach * Definitions for custom tags created by various applications.
24864236f5SGreg Roach */
25864236f5SGreg Roachinterface CustomTagInterface
26864236f5SGreg Roach{
27864236f5SGreg Roach    /**
28864236f5SGreg Roach     * The name of the application.
29864236f5SGreg Roach     *
30864236f5SGreg Roach     * @return string
31864236f5SGreg Roach     */
32864236f5SGreg Roach    public function name(): string;
33864236f5SGreg Roach
34864236f5SGreg Roach    /**
35864236f5SGreg Roach     * Tags created by this application.
36864236f5SGreg Roach     *
37864236f5SGreg Roach     * @return array<string,ElementInterface>
38864236f5SGreg Roach     */
39864236f5SGreg Roach    public function tags(): array;
40864236f5SGreg Roach}
41