| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 13 |
| Ratio | 100 % |
| 1 | <?php |
||
| 56 | View Code Duplication | protected function getSession() |
|
| 57 | { |
||
| 58 | if ($this->session === null) { |
||
| 59 | throw new FoundationException( |
||
| 60 | sprintf( |
||
| 61 | "Client '%s' is not initialized hence does not have a session.", |
||
| 62 | get_class($this) |
||
| 63 | ) |
||
| 64 | ); |
||
| 65 | } |
||
| 66 | |||
| 67 | return $this->session; |
||
| 68 | } |
||
| 69 | } |
||
| 70 |