public static function assertExists($value)
    {
        if (static::exists($value) == false) {
            $class = substr(strrchr(get_called_class(), '\\'), 1);
            throw new \InvalidArgumentException(sprintf('"%s" is not a valid %s value.', $value, $class));
        }
    }
public static function assertExists($value)
    {
        if (static::exists($value) == false) {
            $class = substr(strrchr(get_called_class(), '\\'), 1);
            throw new \InvalidArgumentException(sprintf('"%s" is not a valid %s value.', $value, $class));
        }
    }
public static function assertExists ( $ value ) { if ( static :: exists ( $ value ) == false ) { $ class = substr ( strrchr ( get_called_class ( ) , '\\' ) , 1 ) ; throw new \ InvalidArgumentException ( sprintf ( '"%s" is not a valid %s value.' , $ value , $ class ) ) ; } }
Asserts that the provided value is defined.

@param string $value The value.

@throws \InvalidArgumentException
Asserts that the provided value is defined .