| @@ 111-118 (lines=8) @@ | ||
| 108 | * @return Session |
|
| 109 | * @throws FoundationException |
|
| 110 | */ |
|
| 111 | protected function getSession() |
|
| 112 | { |
|
| 113 | if ($this->session === null) { |
|
| 114 | throw new FoundationException( |
|
| 115 | sprintf( |
|
| 116 | "Client pooler '%s' is not initialized, session not set.", |
|
| 117 | get_class($this) |
|
| 118 | ) |
|
| 119 | ); |
|
| 120 | } |
|
| 121 | ||
| @@ 54-66 (lines=13) @@ | ||
| 51 | * @throws FoundationException if Session is not set. |
|
| 52 | * @return Session |
|
| 53 | */ |
|
| 54 | protected function getSession() |
|
| 55 | { |
|
| 56 | if ($this->session === null) { |
|
| 57 | throw new FoundationException( |
|
| 58 | sprintf( |
|
| 59 | "Client '%s' is not initialized hence does not have a session.", |
|
| 60 | get_class($this) |
|
| 61 | ) |
|
| 62 | ); |
|
| 63 | } |
|
| 64 | ||
| 65 | return $this->session; |
|
| 66 | } |
|
| 67 | } |
|
| 68 | ||