helpers/EnumException.php
public static function invalidValue($type, $value)
    {
        if (is_object($value)) {
            $value = get_class($value);
        } elseif (is_bool($value) || is_null($value)) {
            $value = var_export($value, true);
        }

        return new self(sprintf('The type "%s" does not have a name for the value "%s".', $type, $value));
    }
public static function invalidValue($type, $value)
    {
        if (is_object($value)) {
            $value = get_class($value);
        } elseif (is_bool($value) || is_null($value)) {
            $value = var_export($value, true);
        }

        return new self(sprintf('The type "%s" does not have a name for the value "%s".', $type, $value));
    }
public static function invalidValue ( $ type , $ value ) { if ( is_object ( $ value ) ) { $ value = get_class ( $ value ) ; } elseif ( is_bool ( $ value ) || is_null ( $ value ) ) { $ value = var_export ( $ value , true ) ; } return new self ( sprintf ( 'The type "%s" does not have a name for the value "%s".' , $ type , $ value ) ) ; }
Creates a new exception for a value that is not
valid for a type

@param string $type The name of the type
@param string $value The invalid value

@return EnumException The new exception
Creates a new exception for a value that is not valid for a type