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

Breadcrumb

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

function EnumValue::setNumber

Enum value number.

Generated from protobuf field <code>int32 number = 2;</code>

Parameters

int $var:

Return value

$this

File

vendor/google/protobuf/src/Google/Protobuf/EnumValue.php, line 100

Class

EnumValue
Enum value definition.

Namespace

Google\Protobuf

Code

public function setNumber($var) {
    GPBUtil::checkInt32($var);
    $this->number = $var;
    return $this;
}

API Navigation

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