xref: /webtrees/app/Module/ModuleHistoricEventsInterface.php (revision 5b3469b5533d5614fc6117bf528bdb89a217bb02)
117c50b57SGreg Roach<?php
217c50b57SGreg Roach/**
317c50b57SGreg Roach * webtrees: online genealogy
417c50b57SGreg Roach * Copyright (C) 2019 webtrees development team
517c50b57SGreg Roach * This program is free software: you can redistribute it and/or modify
617c50b57SGreg Roach * it under the terms of the GNU General Public License as published by
717c50b57SGreg Roach * the Free Software Foundation, either version 3 of the License, or
817c50b57SGreg Roach * (at your option) any later version.
917c50b57SGreg Roach * This program is distributed in the hope that it will be useful,
1017c50b57SGreg Roach * but WITHOUT ANY WARRANTY; without even the implied warranty of
1117c50b57SGreg Roach * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1217c50b57SGreg Roach * GNU General Public License for more details.
1317c50b57SGreg Roach * You should have received a copy of the GNU General Public License
1417c50b57SGreg Roach * along with this program. If not, see <http://www.gnu.org/licenses/>.
1517c50b57SGreg Roach */
1617c50b57SGreg Roachdeclare(strict_types=1);
1717c50b57SGreg Roach
1817c50b57SGreg Roachnamespace Fisharebest\Webtrees\Module;
1917c50b57SGreg Roach
2017c50b57SGreg Roachuse Fisharebest\Webtrees\Individual;
2117c50b57SGreg Roachuse Illuminate\Support\Collection;
2217c50b57SGreg Roach
2317c50b57SGreg Roach/**
2417c50b57SGreg Roach * Interface ModuleHistoricEventsInterface - Show historic facts on an individual‘s page
2517c50b57SGreg Roach */
2617c50b57SGreg Roachinterface ModuleHistoricEventsInterface extends ModuleInterface
2717c50b57SGreg Roach{
2817c50b57SGreg Roach    /**
2917c50b57SGreg Roach     * All events provided by this module.
3017c50b57SGreg Roach     *
31*5b3469b5SGreg Roach     * @return Collection|string[]
3217c50b57SGreg Roach     */
33*5b3469b5SGreg Roach    public function historicEventsAll(): Collection;
3417c50b57SGreg Roach
3517c50b57SGreg Roach    /**
3617c50b57SGreg Roach     * Which events should we show for an individual?
3717c50b57SGreg Roach     *
3817c50b57SGreg Roach     * @param Individual $individual
3917c50b57SGreg Roach     *
4017c50b57SGreg Roach     * @return Collection
4117c50b57SGreg Roach     */
4217c50b57SGreg Roach    public function historicEventsForIndividual(Individual $individual): Collection;
4317c50b57SGreg Roach}
44