- Strict check for enum duplicates - Added check for empty enum definition - Added check for duplicated enum definition
16 lines
284 B
PHP
16 lines
284 B
PHP
<?php
|
|
|
|
namespace Kwaadpepper\Enum\Exceptions;
|
|
|
|
use Exception;
|
|
|
|
/**
|
|
* Is thrown when your enum definition
|
|
* contain multiple times the same label value
|
|
*
|
|
* This should happen if you have a duplication declaration
|
|
*/
|
|
class DuplicateDefinitionException extends Exception
|
|
{
|
|
//
|
|
}
|