This repository has been archived on 2025-07-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
atol-online/src/Exceptions/InvalidPhoneException.php

39 lines
998 B
PHP

<?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\Constants\Ffd105Tags;
/**
* Исключение, возникающее при ошибке валидации номера телефона
*/
class InvalidPhoneException extends AtolException
{
protected array $ffd_tags = [
Ffd105Tags::CLIENT_CONTACT,
Ffd105Tags::PAGENT_PHONE,
Ffd105Tags::RPO_PHONES,
Ffd105Tags::MTO_PHONES,
Ffd105Tags::SUPPLIER_PHONES,
];
/**
* Конструктор
*
* @param string $phone
*/
public function __construct(string $phone = '')
{
parent::__construct("Невалидный номер телефона: '$phone'");
}
}