| Conditions | 4 |
| Paths | 4 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 20 |
| Changes | 0 | ||
| 1 | <?php |
||
| 47 | public function getBody() |
||
| 48 | { |
||
| 49 | if (!empty($this->response->HentBehandledeTilmeldingerV2Result)) { |
||
| 50 | return $this->response->HentBehandledeTilmeldingerV2Result; |
||
| 51 | } elseif (!empty($this->response->HentNyeTilmeldingerV2Result)) { |
||
| 52 | return $this->response->HentNyeTilmeldingerV2Result; |
||
| 53 | } elseif (!empty($this->response->NyTilmelding2Result)) { |
||
| 54 | return $this->response->NyTilmelding2Result; |
||
| 55 | } |
||
| 56 | |||
| 57 | throw new \Exception('Not a known response type - You should write a Response class'); |
||
| 58 | } |
||
| 59 | |||
| 80 |