public function setData($data) { $this->getDataStore()->set('session', $data); $this->data = (object) $data; }