$this->id, 'type' => $this->type, 'target_id' => $this->target_id, 'target_type' => $this->target_type, 'context' => $this->context, 'updated_at' => $this->updated_at, 'created_at' => $this->created_at, ]; if ($this->user_id) { $data['user'] = UserApi::getByUuid($this->user_id); } return $data; } }