@@ 103-114 (lines=12) @@ | ||
100 | * |
|
101 | * @return Session |
|
102 | */ |
|
103 | public function getSession() |
|
104 | { |
|
105 | $response = $this->getClient()->call( |
|
106 | 'session-get', |
|
107 | array() |
|
108 | ); |
|
109 | ||
110 | return $this->getMapper()->map( |
|
111 | new Session($this->getClient()), |
|
112 | $this->getValidator()->validate('session-get', $response) |
|
113 | ); |
|
114 | } |
|
115 | ||
116 | /** |
|
117 | * @return SessionStats |
|
@@ 119-130 (lines=12) @@ | ||
116 | /** |
|
117 | * @return SessionStats |
|
118 | */ |
|
119 | public function getSessionStats() |
|
120 | { |
|
121 | $response = $this->getClient()->call( |
|
122 | 'session-stats', |
|
123 | array() |
|
124 | ); |
|
125 | ||
126 | return $this->getMapper()->map( |
|
127 | new SessionStats(), |
|
128 | $this->getValidator()->validate('session-stats', $response) |
|
129 | ); |
|
130 | } |
|
131 | ||
132 | /** |
|
133 | * Get Free space |