public static function isValidKey($key) {
        if(!is_string($key)) {
            throw EnumerationException::invalidKeyType(gettype($key));
        }

        return array_key_exists($key, self::toArray());
    }
public static function isValidKey($key) {
        if(!is_string($key)) {
            throw EnumerationException::invalidKeyType(gettype($key));
        }

        return array_key_exists($key, self::toArray());
    }
public static function isValidKey ( $ key ) { if ( ! is_string ( $ key ) ) { throw EnumerationException :: invalidKeyType ( gettype ( $ key ) ) ; } return array_key_exists ( $ key , self :: toArray ( ) ) ; }
Determines that the given key is exist in the current enumeration or not.

@param string $key

@return bool

@throws \BuildR\Utils\Enumeration\Exception\EnumerationException
Determines that the given key is exist in the current enumeration or not .