From 1419f26f8928b7e3042d90bd0b38f4bec1dcbb43 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Thu, 25 Apr 2024 01:01:37 +0000 Subject: [PATCH] fix tests --- Models/Session.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Models/Session.php b/Models/Session.php index a8e6de0..33c0215 100755 --- a/Models/Session.php +++ b/Models/Session.php @@ -105,6 +105,13 @@ class Session implements \JsonSerializable $this->createdAt = new \DateTimeImmutable('now'); } + /** + * Recalculate the session data after changing its elements + * + * @return void + * + * @since 1.0.0 + */ public function recalculate() : void { \usort($this->sessionElements, [$this, 'compareSessionElementTimestamps']);