Skip to content

Commit

Permalink
feat: Extended exercise model with status retrieval and setting methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume1868 committed Oct 8, 2024
1 parent caa9949 commit b0ba6d3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/models/exercise.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,13 @@ public static function getExercises(Status $status = null)

return $exercises;
}
public function getStatus(): mixed
{
return $this->database_access->getExerciseStatus($this->id);
}

public function setExerciseAs(Status $status)
{
$this->database_access->setExerciseStatus($this->id, $status);
}
}

0 comments on commit b0ba6d3

Please sign in to comment.