. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Elements; use Fisharebest\Webtrees\Tree; use function e; use function rawurlencode; 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://ancestors.familysearch.org/en/{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)); } }