Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
builderhandledmessagefromdatamanager.php
1
<?php
2
3
namespace
Bitrix\Calendar\Core\Queue\Message
;
4
5
use
Bitrix\Calendar\Core\Base\Date
;
6
use
Bitrix\Calendar\Core\Builders\Builder
;
7
use
Bitrix\Calendar\Core\Queue\Queue\QueueFactory
;
8
use Bitrix\Calendar\Internals\EO_QueueHandledMessage;
9
use
Bitrix\Main\ObjectException
;
10
11
class
BuilderHandledMessageFromDataManager
implements
Builder
12
{
13
private
EO_QueueHandledMessage $data;
14
15
public
function
__construct
(EO_QueueHandledMessage $data)
16
{
17
$this->data = $data;
18
}
19
25
public
function
build
(): ?
HandledMessage
26
{
27
$message = (
new
BuilderMessageFromDataManager
($this->data->getMessage()))->
build
();
28
$queue = (
new
QueueFactory
())->getById($this->data->getQueueId());
29
return
(
new
HandledMessage
())
30
->setId($this->data->getId())
31
->setMessage($message)
32
->
setHash
($this->data->getHash())
33
->setQueue($queue)
34
->setDateCreate(
new
Date
($this->data->getDateCreate()))
// TODO: check date is seted
35
;
36
}
37
}
Bitrix\Calendar\Core\Base\Date
Definition
date.php:10
Bitrix\Calendar\Core\Queue\Message\BuilderHandledMessageFromDataManager
Definition
builderhandledmessagefromdatamanager.php:12
Bitrix\Calendar\Core\Queue\Message\BuilderHandledMessageFromDataManager\build
build()
Definition
builderhandledmessagefromdatamanager.php:25
Bitrix\Calendar\Core\Queue\Message\BuilderHandledMessageFromDataManager\__construct
__construct(EO_QueueHandledMessage $data)
Definition
builderhandledmessagefromdatamanager.php:15
Bitrix\Calendar\Core\Queue\Message\BuilderMessageFromDataManager
Definition
buildermessagefromdatamanager.php:9
Bitrix\Calendar\Core\Queue\Message\HandledMessage
Definition
handledmessage.php:10
Bitrix\Calendar\Core\Queue\Message\HandledMessage\setHash
setHash(string $hash)
Definition
handledmessage.php:69
Bitrix\Calendar\Core\Queue\Queue\QueueFactory
Definition
queuefactory.php:6
Bitrix\Main\ObjectException
Definition
exception.php:192
Bitrix\Calendar\Core\Builders\Builder
Definition
builder.php:6
Bitrix\Calendar\Core\Queue\Message
Definition
builderhandledmessagefromdatamanager.php:3
modules
calendar
lib
core
queue
message
builderhandledmessagefromdatamanager.php
Создано системой
1.10.0