{
"event": "PreToolUse",
"tool_name": "Read",
"tool_input": {
"file_path": "\/var\/www\/dev.campus.systemische-tools.de\/src\/Domain\/Entity\/Task.php",
"offset": 235
}
}
{
"tool_response": {
"type": "text",
"file": {
"filePath": "\/var\/www\/dev.campus.systemische-tools.de\/src\/Domain\/Entity\/Task.php",
"content": " public function toArray(): array\n {\n return [\n 'id' => $this->id,\n 'uuid' => $this->uuid,\n 'title' => $this->title,\n 'description' => $this->description,\n 'type' => $this->type->value,\n 'status' => $this->status->value,\n 'created_by' => $this->createdBy,\n 'created_by_type' => $this->createdByType,\n 'parent_task_id' => $this->parentTaskId,\n 'due_date' => $this->dueDate?->format('Y-m-d H:i:s'),\n 'created_at' => $this->createdAt->format('Y-m-d H:i:s.u'),\n 'updated_at' => $this->updatedAt->format('Y-m-d H:i:s.u'),\n 'completed_at' => $this->completedAt?->format('Y-m-d H:i:s.u'),\n 'metadata' => $this->metadata,\n ];\n }\n\n public static function fromArray(array $data): self\n {\n $task = new self();\n\n if (isset($data['id'])) {\n $task->setId((int) $data['id']);\n }\n\n $task->hydrate($data);\n\n return $task;\n }\n}\n",
"numLines": 34,
"startLine": 235,
"totalLines": 268
}
}
}