← All changes
|
includes/sdk/google/google/common-protos/src/Api/ClientLibraryOrganization.php
+6
-6
1.2.9
→
1.4.1
View file →
| @@ -1,9 +1,9 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | # Generated by the protocol buffer compiler. DO NOT EDIT! |
| 4 | 4 | # source: google/api/client.proto |
| 5 | -namespace Dudlewebs\WPMCS\Google\Api; | |
| 5 | +namespace Dudlewebs\WPMCS\GCP\Google\Api; | |
| 6 | 6 | |
| 7 | 7 | use UnexpectedValueException; |
| 8 | 8 | /** |
| 9 | 9 | * The organization for which the client libraries are being published. |
| @@ -64,17 +64,17 @@ | ||
| 64 | 64 | private static $valueToName = [self::CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED => 'CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED', self::CLOUD => 'CLOUD', self::ADS => 'ADS', self::PHOTOS => 'PHOTOS', self::STREET_VIEW => 'STREET_VIEW', self::SHOPPING => 'SHOPPING', self::GEO => 'GEO', self::GENERATIVE_AI => 'GENERATIVE_AI']; |
| 65 | 65 | public static function name($value) |
| 66 | 66 | { |
| 67 | 67 | if (!isset(self::$valueToName[$value])) { |
| 68 | - throw new UnexpectedValueException(sprintf('Enum %s has no name defined for value %s', __CLASS__, $value)); | |
| 68 | + throw new UnexpectedValueException(\sprintf('Enum %s has no name defined for value %s', __CLASS__, $value)); | |
| 69 | 69 | } |
| 70 | 70 | return self::$valueToName[$value]; |
| 71 | 71 | } |
| 72 | 72 | public static function value($name) |
| 73 | 73 | { |
| 74 | - $const = __CLASS__ . '::' . strtoupper($name); | |
| 75 | - if (!defined($const)) { | |
| 76 | - throw new UnexpectedValueException(sprintf('Enum %s has no value defined for name %s', __CLASS__, $name)); | |
| 74 | + $const = __CLASS__ . '::' . \strtoupper($name); | |
| 75 | + if (!\defined($const)) { | |
| 76 | + throw new UnexpectedValueException(\sprintf('Enum %s has no value defined for name %s', __CLASS__, $name)); | |
| 77 | 77 | } |
| 78 | - return constant($const); | |
| 78 | + return \constant($const); | |
| 79 | 79 | } |
| 80 | 80 | } |