From cdacfd918a81d305fc963b3c30789cec558ed87c Mon Sep 17 00:00:00 2001 From: Ryan Prather Date: Tue, 21 Jan 2025 14:30:17 -0500 Subject: [PATCH] fix: MessageFactory Add link parameter to createNewCase method --- src/Factory/MessageFactory.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Factory/MessageFactory.php b/src/Factory/MessageFactory.php index 394cb89..0bfeaee 100644 --- a/src/Factory/MessageFactory.php +++ b/src/Factory/MessageFactory.php @@ -38,7 +38,7 @@ class MessageFactory return $msg; } - public static function createNewCase(User $sender, User $recipient): Messages + public static function createNewCase(User $sender, User $recipient, string $link): Messages { $msg = new Messages(); $msg->setSent(new DateTimeImmutable()) @@ -46,6 +46,7 @@ class MessageFactory ->setSender($sender) ->setRecipient($recipient) ->setTitle('New Case') + ->setLink($link) ->setMessage("You've been assigned a new case") ;