class EnumValueDescriptor
Hierarchy
- class \Google\Protobuf\EnumValueDescriptor
Expanded class hierarchy of EnumValueDescriptor
2 files declare their use of EnumValueDescriptor
- EnumBuilderContext.php in vendor/
google/ protobuf/ src/ Google/ Protobuf/ Internal/ EnumBuilderContext.php - EnumDescriptor.php in vendor/
google/ protobuf/ src/ Google/ Protobuf/ Internal/ EnumDescriptor.php
File
-
vendor/
google/ protobuf/ src/ Google/ Protobuf/ EnumValueDescriptor.php, line 12
Namespace
Google\ProtobufView source
class EnumValueDescriptor {
private $name;
private $number;
/**
* @internal
*/
public function __construct($name, $number) {
$this->name = $name;
$this->number = $number;
}
/**
* @return string
*/
public function getName() {
return $this->name;
}
/**
* @return int
*/
public function getNumber() {
return $this->number;
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
EnumValueDescriptor::$name | private | property | |
EnumValueDescriptor::$number | private | property | |
EnumValueDescriptor::getName | public | function | |
EnumValueDescriptor::getNumber | public | function | |
EnumValueDescriptor::__construct | public | function | @internal |