strval($this->id), 'word' => $this->word, 'count' => $this->count, 'parent' => $this->parent, 'note' => $this->note, 'factors' => $this->factors, 'confidence' => $this->confidence, 'updated_at' => $this->updated_at, 'creator_id' => $this->creator_id, ]; if (!empty($this->editor_id)) { $data['editor'] = UserApi::getByUuid($this->editor_id); } return $data; } }