. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Elements; use function strtoupper; /** * ANCESTRAL_FILE_NUMBER := {Size=1:12} * A unique permanent record number of an individual record contained in the * Family History Department's Ancestral File. */ class FamilySearchFamilyTreeId extends AbstractExternalLink { protected const EXTERNAL_URL = 'https://www.familysearch.org/tree/person/details/{ID}'; protected const MAXIMUM_LENGTH = 8; /** * Convert a value to a canonical form. * * @param string $value * * @return string */ public function canonical(string $value): string { return strtoupper(parent::canonical($value)); } }