function DescriptorPool::addEnumDescriptor
2 calls to DescriptorPool::addEnumDescriptor()
- DescriptorPool::addDescriptor in vendor/
google/ protobuf/ src/ Google/ Protobuf/ Internal/ DescriptorPool.php - DescriptorPool::internalAddGeneratedFile in vendor/
google/ protobuf/ src/ Google/ Protobuf/ Internal/ DescriptorPool.php
File
-
vendor/
google/ protobuf/ src/ Google/ Protobuf/ Internal/ DescriptorPool.php, line 85
Class
Namespace
Google\Protobuf\InternalCode
public function addEnumDescriptor($descriptor) {
$this->proto_to_class[$descriptor->getFullName()] = $descriptor->getClass();
$this->class_to_enum_desc[$descriptor->getClass()] = $descriptor;
$this->class_to_enum_desc[$descriptor->getLegacyClass()] = $descriptor;
}