Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
buildermessagefromdatamanager.php
1
<?php
2
3
namespace
Bitrix\Calendar\Core\Queue\Message
;
4
5
use
Bitrix\Calendar\Core\Builders\Builder
;
6
use Bitrix\Calendar\Internals\EO_QueueMessage;
7
8
class
BuilderMessageFromDataManager
implements
Builder
9
{
10
private
EO_QueueMessage $data;
11
12
public
function
__construct
(EO_QueueMessage $data)
13
{
14
$this->data = $data;
15
}
16
20
public
function
build
(): ?
Message
21
{
22
$message = $this->data->getMessage();
23
return
(
new
Message
())
24
->setId($this->data->getId())
25
->
setBody
($message[
Dictionary::MESSAGE_PARTS
[
'body'
]] ?? [])
26
->setHeaders($message[
Dictionary::MESSAGE_PARTS
[
'headers'
]] ?? [])
27
->setProperties($message[
Dictionary::MESSAGE_PARTS
[
'properties'
]] ?? [])
28
;
29
}
30
}
Bitrix\Calendar\Core\Queue\Message\BuilderMessageFromDataManager
Definition
buildermessagefromdatamanager.php:9
Bitrix\Calendar\Core\Queue\Message\BuilderMessageFromDataManager\build
build()
Definition
buildermessagefromdatamanager.php:20
Bitrix\Calendar\Core\Queue\Message\BuilderMessageFromDataManager\__construct
__construct(EO_QueueMessage $data)
Definition
buildermessagefromdatamanager.php:12
Bitrix\Calendar\Core\Queue\Message\Dictionary\MESSAGE_PARTS
const MESSAGE_PARTS
Definition
dictionary.php:7
Bitrix\Calendar\Core\Builders\Builder
Definition
builder.php:6
Bitrix\Calendar\Core\Queue\Interfaces\Message
Definition
message.php:16
Bitrix\Calendar\Core\Queue\Interfaces\Message\setBody
setBody($body)
Bitrix\Calendar\Core\Queue\Message
Definition
builderhandledmessagefromdatamanager.php:3
modules
calendar
lib
core
queue
message
buildermessagefromdatamanager.php
Создано системой
1.10.0