fix: MessageFactory

Add link parameter to createNewCase method
This commit is contained in:
Ryan Prather 2025-01-21 14:30:17 -05:00
parent 922852f211
commit cdacfd918a

View File

@ -38,7 +38,7 @@ class MessageFactory
return $msg; 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 = new Messages();
$msg->setSent(new DateTimeImmutable()) $msg->setSent(new DateTimeImmutable())
@ -46,6 +46,7 @@ class MessageFactory
->setSender($sender) ->setSender($sender)
->setRecipient($recipient) ->setRecipient($recipient)
->setTitle('New Case') ->setTitle('New Case')
->setLink($link)
->setMessage("You've been assigned a new case") ->setMessage("You've been assigned a new case")
; ;