* SPDX-License-Identifier: MIT */ declare(strict_types=1); namespace Respect\Validation\Exceptions; use Respect\Validation\Rules\Phone; final class PhoneException extends ValidationException { public const FOR_COUNTRY = 'for_country'; public const INTERNATIONAL = 'international'; /** * @var array> */ protected array $defaultTemplates = [ self::MODE_DEFAULT => [ Phone::TEMPLATE_INTERNATIONAL => '{{name}} must be a valid telephone number', Phone::TEMPLATE_FOR_COUNTRY => '{{name}} must be a valid telephone number for country {{countryName}}', ], self::MODE_NEGATIVE => [ Phone::TEMPLATE_INTERNATIONAL => '{{name}} must not be a valid telephone number', Phone::TEMPLATE_FOR_COUNTRY => '{{name}} must not be a valid telephone number for country {{countryName}}', ], ]; }