* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ declare(strict_types=1); namespace PrestaShop\PrestaShop\Core\Domain\State; class StateSettings { /** * Maximum length for state name */ public const MAX_NAME_LENGTH = 64; /** * Maximum length for iso code (value is constrained by database) */ public const MAX_ISO_CODE_LENGTH = 7; /** * State iso code field value regexp validation pattern */ public const STATE_ISO_CODE_PATTERN = '/^[a-zA-Z0-9]{1,4}((-)[a-zA-Z0-9]{1,4})?$/'; }