19 declare(strict_types=1);
28 private string $title,
29 private ?
string $description,
30 private ?
string $deadline
39 return $this->todo_id;
63 return $this->description;
71 return $this->deadline;
80 $clone->todo_id = $todo_id;
__construct(private int $todo_id, private int $user_id, private string $title, private ?string $description, private ?string $deadline)
getUserId()
Get the id of the user to which the item belongs.
getTodoId()
Get the id of the item.
widthTodoId(int $todo_id)
Get a clone with a new id.
getDeadline()
Get the deadline of the item (optional)
getDescription()
Get a description of the item (optional)
getTitle()
Get the title of the item.