for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Akizuki\enum\Exceptions;
use LogicException;
/**
* [ Exception ] Same Value Constant Found
*
* This exception will be thrown if two constants have the same value.
* @author 4kizuki <[email protected]>
* @copyright 2017 4kizuki. All Rights Reserved.
* @package 4kizuki/php-enum
* @since 1.0.0
*/
class DuplicatedConstantException extends LogicException {
public function __construct( string $className, string $constName ) {
parent::__construct( "Constant duplication found: \"{$className}::{$constName}\"." );
}