mirror of
https://github.com/Respect/Validation.git
synced 2026-03-18 08:09:51 +01:00
There are not other VATINs besides the one from Poland. That said, it makes more sense to have a specific rule that only validates NIP. Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
33 lines
840 B
PHP
33 lines
840 B
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of Respect/Validation.
|
|
*
|
|
* (c) Alexandre Gomes Gaigalas <alexandre@gaigalas.net>
|
|
*
|
|
* For the full copyright and license information, please view the "LICENSE.md"
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Respect\Validation\Exceptions;
|
|
|
|
/**
|
|
* @author Henrique Moody <henriquemoody@gmail.com>
|
|
* @author Tomasz Regdos <tomek@regdos.com>
|
|
*/
|
|
final class NipException extends ValidationException
|
|
{
|
|
/**
|
|
* {@inheritDoc}
|
|
*/
|
|
public static $defaultTemplates = [
|
|
self::MODE_DEFAULT => [
|
|
self::STANDARD => '{{name}} must be a valid Polish VAT identification number',
|
|
],
|
|
self::MODE_NEGATIVE => [
|
|
self::STANDARD => '{{name}} must not be a valid Polish VAT identification number',
|
|
],
|
|
];
|
|
}
|