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") ;