function GPBUtil::getPreviouslyUnreservedClassNamePrefix
2 calls to GPBUtil::getPreviouslyUnreservedClassNamePrefix()
- GPBUtil::getFullClassName in vendor/
google/ protobuf/ src/ Google/ Protobuf/ Internal/ GPBUtil.php - GPBUtil::getPreviouslyUnreservedClassNameWithoutPackage in vendor/
google/ protobuf/ src/ Google/ Protobuf/ Internal/ GPBUtil.php
File
-
vendor/
google/ protobuf/ src/ Google/ Protobuf/ Internal/ GPBUtil.php, line 284
Class
Namespace
Google\Protobuf\InternalCode
private static function getPreviouslyUnreservedClassNamePrefix($classname, $file_proto) {
$previously_unreserved_words = array(
"readonly" => 0,
);
if (array_key_exists(strtolower($classname), $previously_unreserved_words)) {
$option = $file_proto->getOptions();
$prefix = is_null($option) ? "" : $option->getPhpClassPrefix();
if ($prefix !== "") {
return $prefix;
}
return "";
}
return self::getClassNamePrefix($classname, $file_proto);
}