← All changes
|
includes/sdk/google/google/common-protos/src/Api/ClientLibraryDestination.php
+6
-6
1.1.1
→
1.4.2
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 | * To where should client libraries be published? |
| @@ -35,17 +35,17 @@ | ||
| 35 | 35 | private static $valueToName = [self::CLIENT_LIBRARY_DESTINATION_UNSPECIFIED => 'CLIENT_LIBRARY_DESTINATION_UNSPECIFIED', self::GITHUB => 'GITHUB', self::PACKAGE_MANAGER => 'PACKAGE_MANAGER']; |
| 36 | 36 | public static function name($value) |
| 37 | 37 | { |
| 38 | 38 | if (!isset(self::$valueToName[$value])) { |
| 39 | - throw new UnexpectedValueException(sprintf('Enum %s has no name defined for value %s', __CLASS__, $value)); | |
| 39 | + throw new UnexpectedValueException(\sprintf('Enum %s has no name defined for value %s', __CLASS__, $value)); | |
| 40 | 40 | } |
| 41 | 41 | return self::$valueToName[$value]; |
| 42 | 42 | } |
| 43 | 43 | public static function value($name) |
| 44 | 44 | { |
| 45 | - $const = __CLASS__ . '::' . strtoupper($name); | |
| 46 | - if (!defined($const)) { | |
| 47 | - throw new UnexpectedValueException(sprintf('Enum %s has no value defined for name %s', __CLASS__, $name)); | |
| 45 | + $const = __CLASS__ . '::' . \strtoupper($name); | |
| 46 | + if (!\defined($const)) { | |
| 47 | + throw new UnexpectedValueException(\sprintf('Enum %s has no value defined for name %s', __CLASS__, $name)); | |
| 48 | 48 | } |
| 49 | - return constant($const); | |
| 49 | + return \constant($const); | |
| 50 | 50 | } |
| 51 | 51 | } |