Skip to content

Commit

Permalink
feat: add find risk by date
Browse files Browse the repository at this point in the history
  • Loading branch information
xchopin committed Aug 20, 2019
1 parent 747a5af commit ff3506b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Model/Risk.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,9 @@ public static function latestByClassAndUser(String $classId, String $userId)
return parent::get("risks/classes/$classId/users/$userId?date=latest");
}

public static function findByClassAndUserAndDate(String $classId, String $userId, String $date)
{
return parent::get("risks/classes/$classId/users/$userId?date=$date");
}

}

0 comments on commit ff3506b

Please sign in to comment.