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

Breadcrumb

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

function Enum::__construct

Same name in this branch
  1. 11.1.x vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Annotation/Enum.php \Doctrine\Common\Annotations\Annotation\Enum::__construct()

Constructor.

Parameters

array $data {: Optional. Data for populating the Message object.

@type string $name Enum type name. @type array<\Google\Protobuf\EnumValue>|\Google\Protobuf\Internal\RepeatedField $enumvalue Enum value definitions. @type array<\Google\Protobuf\Option>|\Google\Protobuf\Internal\RepeatedField $options Protocol buffer options. @type \Google\Protobuf\SourceContext $source_context The source context. @type int $syntax The source syntax. }

Overrides Message::__construct

File

vendor/google/protobuf/src/Google/Protobuf/Enum.php, line 67

Class

Enum
Enum type definition.

Namespace

Google\Protobuf

Code

public function __construct($data = NULL) {
    \GPBMetadata\Google\Protobuf\Type::initOnce();
    parent::__construct($data);
}

API Navigation

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