diff --git a/src/Factory/MessageFactory.php b/src/Factory/MessageFactory.php index 25def06..394cb89 100644 --- a/src/Factory/MessageFactory.php +++ b/src/Factory/MessageFactory.php @@ -121,4 +121,18 @@ class MessageFactory return $msg; } -} \ No newline at end of file + + 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; + } +}