Added todo list
This commit is contained in:
parent
454d7a1d6d
commit
e8e4112548
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ class TodoList
|
||||||
return $this->todos;
|
return $this->todos;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getTodoById(int $id): ?Todo
|
public function getTodoById(int $id): Todo
|
||||||
{
|
{
|
||||||
foreach ($this->todos as $todo) {
|
foreach ($this->todos as $todo) {
|
||||||
if ($todo->getID() == $id) {
|
if ($todo->getID() == $id) {
|
||||||
|
|
Reference in a new issue