Add new method to create message back to worker when supervisor signs report

This commit is contained in:
Ryan Prather 2024-12-22 22:59:05 +00:00
parent 9526156d16
commit e4b1704519

View File

@ -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;
}
} }