public static function getName($value)
    {
        $key = array_search($value, static::toArray(), true);  // Search using strict comparison

        if ($key === false) {
            static::triggerUndefinedConstantError($value);
        }

        return $key;
    }