public function to_serialized($data = NULL) { // If no data is passed as a parameter, then use the data passed // via the constructor if ($data === NULL && func_num_args() === 0) { $data = $this->_data; } return serialize($data); }