Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. IdempotencyLevel.php

function IdempotencyLevel::name

File

vendor/google/protobuf/src/Google/Protobuf/Internal/MethodOptions/IdempotencyLevel.php, line 41

Class

IdempotencyLevel
Is this method side-effect-free (or safe in HTTP parlance), or idempotent, or neither? HTTP based RPC implementation may choose GET verb for safe methods, and PUT verb for idempotent methods instead of the default POST.

Namespace

Google\Protobuf\Internal\MethodOptions

Code

public static function name($value) {
    if (!isset(self::$valueToName[$value])) {
        throw new UnexpectedValueException(sprintf('Enum %s has no name defined for value %s', __CLASS__, $value));
    }
    return self::$valueToName[$value];
}
RSS feed
Powered by Drupal