96 if ( is_null($key) ) {
97 throw new RuntimeException(
'Session key cannot be null');
99 $this->sessionKey = (string)$key;
117 public function now( $key, $value ) {
118 $this->messages[
'now'][(string)$key] = $value;
119 return $this->
save();
128 public function set( $key, $value ) {
129 $this->messages[
'next'][(string)$key] = $value;
130 return $this->
save();
138 return array_merge($this->messages[
'prev'], $this->messages[
'now']);
156 foreach ( $this->messages[
'prev'] as $key => $val ) {
157 $this->messages[
'next'][$key] = $val;
159 return $this->
save();
184 $this->
now($offset, $value);
188 unset($this->messages[
'prev'][$offset]);
189 unset($this->messages[
'now'][$offset]);