atol-online/src/Exceptions/TooLongClientContactExcepti...

27 lines
863 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<?php
/*
* Copyright (c) 2020-2021 Антон Аксенов (Anthony Axenov)
*
* This code is licensed under MIT.
* Этот код распространяется по лицензии MIT.
* https://github.com/anthonyaxenov/atol-online/blob/master/LICENSE
*/
declare(strict_types=1);
namespace AtolOnline\Exceptions;
use AtolOnline\Constraints;
use AtolOnline\Ffd105Tags;
/**
* Исключение, возникающее при попытке указать слишком длинный телефон или email покупателя
*/
class TooLongClientContactException extends TooLongException
{
protected $message = 'Cлишком длинный телефон или email покупателя';
protected float $max = Constraints::MAX_LENGTH_CLIENT_CONTACT;
protected array $ffd_tags = [Ffd105Tags::CLIENT_PHONE_EMAIL];
}