2020-01-11 06:30:25 +00:00
|
|
|
|
<?php
|
2021-11-18 04:24:30 +00:00
|
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2020-2021 Антон Аксенов (Anthony Axenov)
|
2020-01-11 06:30:25 +00:00
|
|
|
|
*
|
|
|
|
|
* This code is licensed under MIT.
|
|
|
|
|
* Этот код распространяется по лицензии MIT.
|
|
|
|
|
* https://github.com/anthonyaxenov/atol-online/blob/master/LICENSE
|
|
|
|
|
*/
|
|
|
|
|
|
2021-11-18 04:24:30 +00:00
|
|
|
|
declare(strict_types = 1);
|
|
|
|
|
|
2020-01-11 06:30:25 +00:00
|
|
|
|
namespace AtolOnline\Exceptions;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Исключение, возникающее при попытке указать слишком длинный телефон
|
|
|
|
|
*/
|
2021-11-18 04:24:30 +00:00
|
|
|
|
class TooLongUnitException extends BasicTooLongException
|
2020-01-11 06:30:25 +00:00
|
|
|
|
{
|
|
|
|
|
/**
|
2020-05-27 15:10:30 +00:00
|
|
|
|
* @inheritDoc
|
|
|
|
|
*/
|
2021-11-18 04:24:30 +00:00
|
|
|
|
protected array $ffd_tags = [
|
2020-05-27 15:10:30 +00:00
|
|
|
|
1197,
|
|
|
|
|
];
|
2021-11-18 04:24:30 +00:00
|
|
|
|
|
2020-05-27 15:10:30 +00:00
|
|
|
|
/**
|
|
|
|
|
* @var string Сообщение об ошибке
|
2020-01-11 06:30:25 +00:00
|
|
|
|
*/
|
2020-05-27 15:10:30 +00:00
|
|
|
|
protected $message = 'Measurement unit is too long';
|
2020-01-11 06:30:25 +00:00
|
|
|
|
}
|