Maybe change this name to 'setSerializedData' or maybe 'unserializeToData'?  Right now it sounds like its going to return unserialized data (as a matching function to 'serializeData'), however it has the side effect of setting $this->data.