function IdempotencyLevel::value
File
-
vendor/
google/ protobuf/ src/ Google/ Protobuf/ Internal/ MethodOptions/ IdempotencyLevel.php, line 51
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\MethodOptionsCode
public static function value($name) {
$const = __CLASS__ . '::' . strtoupper($name);
if (!defined($const)) {
throw new UnexpectedValueException(sprintf('Enum %s has no value defined for name %s', __CLASS__, $name));
}
return constant($const);
}