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