| @@ 101-110 (lines=10) @@ | ||
| 98 | * |
|
| 99 | * @throws \UnexpectedValueException |
|
| 100 | */ |
|
| 101 | public function getSiteGroup() |
|
| 102 | { |
|
| 103 | if (!isset($this->sitegroup)) { |
|
| 104 | $this->sitegroup = $this->getenv('AH_SITE_GROUP'); |
|
| 105 | if (!$this->sitegroup) { |
|
| 106 | throw new \UnexpectedValueException('Expecting environment variable AH_SITE_GROUP to be set'); |
|
| 107 | } |
|
| 108 | } |
|
| 109 | return $this->sitegroup; |
|
| 110 | } |
|
| 111 | ||
| 112 | /** |
|
| 113 | * @return string |
|
| @@ 117-126 (lines=10) @@ | ||
| 114 | * |
|
| 115 | * @throws \UnexpectedValueException |
|
| 116 | */ |
|
| 117 | public function getSiteName() |
|
| 118 | { |
|
| 119 | if (!isset($this->sitename)) { |
|
| 120 | $this->sitename = $this->getenv('AH_SITE_NAME'); |
|
| 121 | if (!$this->sitename) { |
|
| 122 | throw new \UnexpectedValueException('Expecting environment variable AH_SITE_NAME to be set'); |
|
| 123 | } |
|
| 124 | } |
|
| 125 | return $this->sitename; |
|
| 126 | } |
|
| 127 | ||
| 128 | /** |
|
| 129 | * @return string |
|
| @@ 133-142 (lines=10) @@ | ||
| 130 | * |
|
| 131 | * @throws \UnexpectedValueException |
|
| 132 | */ |
|
| 133 | public function getCurrentRegion() |
|
| 134 | { |
|
| 135 | if (!isset($this->currentregion)) { |
|
| 136 | $this->currentregion = $this->getenv('AH_CURRENT_REGION'); |
|
| 137 | if (!$this->currentregion) { |
|
| 138 | throw new \UnexpectedValueException('Expecting environment variable AH_CURRENT_REGION to be set'); |
|
| 139 | } |
|
| 140 | } |
|
| 141 | return $this->currentregion; |
|
| 142 | } |
|
| 143 | ||
| 144 | /** |
|
| 145 | * @param string $filepath |
|