diff options
| author | David T. Sadler <davidtsadler@googlemail.com> | 2021-11-14 08:49:37 +0000 |
|---|---|---|
| committer | David T. Sadler <davidtsadler@googlemail.com> | 2021-11-14 08:49:37 +0000 |
| commit | 8977f8cec4ca88f13528792a453eb27328e22845 (patch) | |
| tree | 3479e7c7a3cec0a0ca923ea3c134d7243797b19d /src/DTS/TodoRepository.php | |
| parent | 3226a642822a15e6cf937d3f0ec20fdf71651ea4 (diff) | |
Add description to todo
Diffstat (limited to 'src/DTS/TodoRepository.php')
| -rw-r--r-- | src/DTS/TodoRepository.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/DTS/TodoRepository.php b/src/DTS/TodoRepository.php index 5ec759f..358ac9d 100644 --- a/src/DTS/TodoRepository.php +++ b/src/DTS/TodoRepository.php @@ -124,8 +124,9 @@ class TodoRepository implements \Iterator $todo->id = $id++; $todo->task = $data[0]; - $todo->tag = $data[1]; - $todo->addedAt = $data[2]; + $todo->description = $data[1]; + $todo->tag = $data[2]; + $todo->addedAt = $data[3]; $this->repository[] = $todo; @@ -150,6 +151,7 @@ class TodoRepository implements \Iterator foreach ($this->repository as $todo) { $success = $success && fputcsv($fp, [ $todo->task, + $todo->description, $todo->tag, $todo->addedAt, ]) !== false; |
