protected function insertState(Identifier $identifier, $state, $message = null) { // set object on the session $data = new StorageData($identifier, $state, $message); $key = $identifier->getId(); $_SESSION[$this->namespace][$key] = $data; }