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

Breadcrumb

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

function NullValue::name

File

vendor/google/protobuf/src/Google/Protobuf/NullValue.php, line 29

Class

NullValue
`NullValue` is a singleton enumeration to represent the null value for the `Value` type union. The JSON representation for `NullValue` is JSON `null`.

Namespace

Google\Protobuf

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];
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal