| 1 | <?php |
||
| 13 | final class PhoneNumber extends AbstractConstraint |
||
| 14 | { |
||
| 15 | const ANY = 'any'; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var string |
||
| 19 | * |
||
| 20 | * Using PhoneNumber::ANY option will valid phone numbers with only country code prefixes (e.g. +33). |
||
| 21 | * |
||
| 22 | * For the avaible country, @see \libphonenumber\PhoneNumberUtil::isValidRegionCode |
||
| 23 | */ |
||
| 24 | public $country = self::ANY; |
||
| 25 | |||
| 26 | public $message = 'This value is not a valid phone number.'; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * {@inheritdoc} |
||
| 30 | */ |
||
| 31 | public function __construct($options = null) |
||
| 35 | |||
| 36 | /** |
||
| 37 | * {@inheritdoc} |
||
| 38 | */ |
||
| 39 | public function getIsoCodesVersion() |
||
| 43 | |||
| 44 | /** |
||
| 45 | * {@inheritdoc} |
||
| 46 | */ |
||
| 47 | public function getIsoCodesClass() |
||
| 51 | } |
||
| 52 |