Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
dbrule.php
1<?php
2
4
8use Bitrix\Calendar\Core;
10
11abstract class DbRule implements Interfaces\RouteRule
12{
17 public function route(Interfaces\Message $message): ?HandledMessage
18 {
20 if ($queue = $this->getTargetQueue($message))
21 {
22 return (new HandledMessage())
23 ->setMessage($message)
24 ->setQueue($queue)
25 ->setHash($this->getMessageHash($message));
26 }
27
28 return null;
29 }
30
36 abstract protected function getTargetQueue(Interfaces\Message $message): ?Queue;
37
43 abstract protected function getMessageHash(Interfaces\Message $message): string;
44}
getMessageHash(Interfaces\Message $message)
getTargetQueue(Interfaces\Message $message)