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