Total Complexity | 4 |
Total Lines | 47 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
17 | trait DefaultRegionTrait |
||
18 | { |
||
19 | /** |
||
20 | * @var string|null Default RegionId |
||
21 | */ |
||
22 | protected static $defaultRegionId; |
||
23 | |||
24 | /** |
||
25 | * @deprecated |
||
26 | * @codeCoverageIgnore |
||
27 | */ |
||
28 | public static function setGlobalRegionId() |
||
29 | { |
||
30 | throw new RuntimeException('deprecated since 2.0, Use setDefaultRegionId() instead.'); |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * @deprecated |
||
35 | * @codeCoverageIgnore |
||
36 | */ |
||
37 | public static function getGlobalRegionId() |
||
40 | } |
||
41 | |||
42 | /** |
||
43 | * Get the default RegionId. |
||
44 | * |
||
45 | * @return string|null |
||
46 | */ |
||
47 | 6 | public static function getDefaultRegionId() |
|
50 | } |
||
51 | |||
52 | /** |
||
53 | * Set the default RegionId. |
||
54 | * |
||
55 | * @param string $regionId |
||
56 | * |
||
57 | * @throws ClientException |
||
58 | */ |
||
59 | 8 | public static function setDefaultRegionId($regionId) |
|
66 |