respect-validation/library/Exceptions/IterableTypeException.php

29 lines
592 B
PHP
Raw Normal View History

2016-08-03 09:59:32 +02:00
<?php
/*
* Copyright (c) Alexandre Gomes Gaigalas <alganet@gmail.com>
* SPDX-License-Identifier: MIT
2016-08-03 09:59:32 +02:00
*/
declare(strict_types=1);
2016-08-03 09:59:32 +02:00
namespace Respect\Validation\Exceptions;
/**
* @author Henrique Moody <henriquemoody@gmail.com>
*/
final class IterableTypeException extends ValidationException
2016-08-03 09:59:32 +02:00
{
/**
* {@inheritDoc}
*/
protected $defaultTemplates = [
2016-08-03 09:59:32 +02:00
self::MODE_DEFAULT => [
self::STANDARD => '{{name}} must be iterable',
],
self::MODE_NEGATIVE => [
self::STANDARD => '{{name}} must not be iterable',
],
];
}