fix: MessageFactory
Add link parameter to createNewCase method
This commit is contained in:
parent
922852f211
commit
cdacfd918a
@ -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")
|
||||
;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user