public function setDataStore(DataStoreInterface $data_store) { $this->data_store = $data_store; $this->data = (object) $data_store->get('session'); }