for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Yokai\Enum\Exception;
use BadMethodCallException;
/**
* @author Yann Eugoné <[email protected]>
*/
class DuplicatedEnumException extends BadMethodCallException
{
* @param string $name
*
* @return DuplicatedEnumException
public static function alreadyRegistered($name)
return new self(sprintf('Enum with name "%s" is already registered', $name));
}