. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Elements; use function strtoupper; /** * ADDRESS_POST := {Size=1:10} * The ZIP or postal code used by the various localities in handling of mail. * Isolated for sorting or indexing. */ class AddressPostalCode extends AbstractElement { protected const MAX_LENGTH = 10; /** * Convert a value to a canonical form. * * @param string $value * * @return string */ public function canonical(string $value): string { return strtoupper(parent::canonical($value)); } }