Add new method to create message back to worker when supervisor signs report
This commit is contained in:
parent
9526156d16
commit
e4b1704519
@ -121,4 +121,18 @@ class MessageFactory
|
|||||||
|
|
||||||
return $msg;
|
return $msg;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
public static function createSupervisorSignStaffNote(User $sender, User $recipient, MemberCase $case): Messages
|
||||||
|
{
|
||||||
|
$msg = new Messages();
|
||||||
|
$msg->setSender($sender)
|
||||||
|
->setRecipient($recipient)
|
||||||
|
->setSent(new DateTimeImmutable())
|
||||||
|
->setType(MessageType::STAFFING)
|
||||||
|
->setTitle('Staff Note Signed')
|
||||||
|
->setMessage("Supervisor signed note for {$case->getCaseName()}")
|
||||||
|
;
|
||||||
|
|
||||||
|
return $msg;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user