Total Complexity | 4 |
Total Lines | 49 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | trait DefaultRegionTrait |
||
17 | { |
||
18 | /** |
||
19 | * @var string|null Default RegionId |
||
20 | */ |
||
21 | protected static $defaultRegionId; |
||
22 | |||
23 | /** |
||
24 | * @param $regionId |
||
25 | * |
||
26 | * @throws ClientException |
||
27 | * @deprecated |
||
28 | * @codeCoverageIgnore |
||
29 | */ |
||
30 | public static function setGlobalRegionId($regionId) |
||
31 | { |
||
32 | self::setDefaultRegionId($regionId); |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * @return string|null |
||
37 | * @deprecated |
||
38 | * @codeCoverageIgnore |
||
39 | */ |
||
40 | public static function getGlobalRegionId() |
||
43 | } |
||
44 | |||
45 | /** |
||
46 | * Get the default RegionId. |
||
47 | * |
||
48 | * @return string|null |
||
49 | */ |
||
50 | 6 | public static function getDefaultRegionId() |
|
53 | } |
||
54 | |||
55 | /** |
||
56 | * Set the default RegionId. |
||
57 | * |
||
58 | * @param string $regionId |
||
59 | * |
||
60 | * @throws ClientException |
||
61 | */ |
||
62 | 8 | public static function setDefaultRegionId($regionId) |
|
67 |