xref: /webtrees/app/Contracts/SlugFactoryInterface.php (revision d11be7027e34e3121be11cc025421873364403f9)
1194b0938SGreg Roach<?php
2194b0938SGreg Roach
3194b0938SGreg Roach/**
4194b0938SGreg Roach * webtrees: online genealogy
5*d11be702SGreg Roach * Copyright (C) 2023 webtrees development team
6194b0938SGreg Roach * This program is free software: you can redistribute it and/or modify
7194b0938SGreg Roach * it under the terms of the GNU General Public License as published by
8194b0938SGreg Roach * the Free Software Foundation, either version 3 of the License, or
9194b0938SGreg Roach * (at your option) any later version.
10194b0938SGreg Roach * This program is distributed in the hope that it will be useful,
11194b0938SGreg Roach * but WITHOUT ANY WARRANTY; without even the implied warranty of
12194b0938SGreg Roach * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13194b0938SGreg Roach * GNU General Public License for more details.
14194b0938SGreg Roach * You should have received a copy of the GNU General Public License
15194b0938SGreg Roach * along with this program. If not, see <https://www.gnu.org/licenses/>.
16194b0938SGreg Roach */
17194b0938SGreg Roach
18194b0938SGreg Roachdeclare(strict_types=1);
19194b0938SGreg Roach
20194b0938SGreg Roachnamespace Fisharebest\Webtrees\Contracts;
21194b0938SGreg Roach
22194b0938SGreg Roachuse Fisharebest\Webtrees\GedcomRecord;
23194b0938SGreg Roach
24194b0938SGreg Roach/**
25194b0938SGreg Roach * Make a slug to be used in the URL of a GedcomRecord.
26194b0938SGreg Roach */
27194b0938SGreg Roachinterface SlugFactoryInterface
28194b0938SGreg Roach{
29194b0938SGreg Roach    /**
30194b0938SGreg Roach     * @param GedcomRecord $record
31194b0938SGreg Roach     *
3219033cfeSGreg Roach     * @return string
33194b0938SGreg Roach     */
3419033cfeSGreg Roach    public function make(GedcomRecord $record): string;
35194b0938SGreg Roach}
36