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

Breadcrumb

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

function EnumDescriptor::addValue

File

vendor/google/protobuf/src/Google/Protobuf/Internal/EnumDescriptor.php, line 33

Class

EnumDescriptor

Namespace

Google\Protobuf\Internal

Code

public function addValue($number, $value) {
    $this->value[$number] = $value;
    $this->name_to_value[$value->getName()] = $value;
    $this->value_descriptor[] = new EnumValueDescriptor($value->getName(), $number);
}

API Navigation

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