14ccf2a72SGreg Roach<?php 23976b470SGreg Roach 34ccf2a72SGreg Roach/** 44ccf2a72SGreg Roach * webtrees: online genealogy 5*d11be702SGreg Roach * Copyright (C) 2023 webtrees development team 64ccf2a72SGreg Roach * This program is free software: you can redistribute it and/or modify 74ccf2a72SGreg Roach * it under the terms of the GNU General Public License as published by 84ccf2a72SGreg Roach * the Free Software Foundation, either version 3 of the License, or 94ccf2a72SGreg Roach * (at your option) any later version. 104ccf2a72SGreg Roach * This program is distributed in the hope that it will be useful, 114ccf2a72SGreg Roach * but WITHOUT ANY WARRANTY; without even the implied warranty of 124ccf2a72SGreg Roach * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 134ccf2a72SGreg Roach * GNU General Public License for more details. 144ccf2a72SGreg Roach * You should have received a copy of the GNU General Public License 1589f7189bSGreg Roach * along with this program. If not, see <https://www.gnu.org/licenses/>. 164ccf2a72SGreg Roach */ 17fcfa147eSGreg Roach 18e7f56f2aSGreg Roachdeclare(strict_types=1); 1915d603e7SGreg Roach 204ccf2a72SGreg Roachnamespace Fisharebest\Webtrees\Census; 214ccf2a72SGreg Roach 22ef21b467SGreg Roachuse Fisharebest\Webtrees\Date; 23db7d25eeSGreg Roachuse Fisharebest\Webtrees\Individual; 24db7d25eeSGreg Roach 254ccf2a72SGreg Roach/** 264ccf2a72SGreg Roach * Definitions for a census column 274ccf2a72SGreg Roach */ 28c1010edaSGreg Roachinterface CensusColumnInterface 29c1010edaSGreg Roach{ 304ccf2a72SGreg Roach /** 31ef21b467SGreg Roach * A short version of the column's name. 32ef21b467SGreg Roach * 33ef21b467SGreg Roach * @return string 34ef21b467SGreg Roach */ 358f53f488SRico Sonntag public function abbreviation(): string; 36ef21b467SGreg Roach 37ef21b467SGreg Roach /** 38ef21b467SGreg Roach * When did this census occur 39ef21b467SGreg Roach * 40ef21b467SGreg Roach * @return Date 41ef21b467SGreg Roach */ 428f53f488SRico Sonntag public function date(): Date; 43ef21b467SGreg Roach 44ef21b467SGreg Roach /** 454ccf2a72SGreg Roach * Generate the likely value of this census column, based on available information. 464ccf2a72SGreg Roach * 47db7d25eeSGreg Roach * @param Individual $individual 4815d603e7SGreg Roach * @param Individual $head 49db7d25eeSGreg Roach * 504ccf2a72SGreg Roach * @return string 514ccf2a72SGreg Roach */ 528f53f488SRico Sonntag public function generate(Individual $individual, Individual $head): string; 53ef21b467SGreg Roach 54ef21b467SGreg Roach /** 55ef21b467SGreg Roach * Where did this census occur 56ef21b467SGreg Roach * 57ef21b467SGreg Roach * @return string 58ef21b467SGreg Roach */ 598f53f488SRico Sonntag public function place(): string; 60ef21b467SGreg Roach 61ef21b467SGreg Roach /** 62ef21b467SGreg Roach * The full version of the column's name. 63ef21b467SGreg Roach * 64ef21b467SGreg Roach * @return string 65ef21b467SGreg Roach */ 668f53f488SRico Sonntag public function title(): string; 674ccf2a72SGreg Roach} 68