Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
sendmessage.php
1
<?php
2
namespace
Bitrix\MessageService\Sender\Result
;
3
4
use
Bitrix\Main\Result
;
5
use
Bitrix\MessageService\DTO
;
6
use
Bitrix\MessageService\MessageStatus
;
7
8
class
SendMessage
extends
Result
9
{
10
protected
$id
;
11
protected
$externalId
;
12
protected
$status
;
13
protected
$serviceRequest
;
14
protected
$serviceResponse
;
15
20
public
function
setId
(
$id
)
21
{
22
$this->
id
= (string)
$id
;
23
return
$this;
24
}
25
29
public
function
getId
()
30
{
31
return
$this->id
;
32
}
33
37
public
function
getExternalId
()
38
{
39
return
$this->externalId
;
40
}
41
46
public
function
setExternalId
(
$externalId
)
47
{
48
$this->externalId =
$externalId
;
49
return
$this;
50
}
51
56
public
function
getStatus
()
57
{
58
return
$this->status
;
59
}
60
66
public
function
setStatus
(
$status
)
67
{
68
$this->status =
$status
;
69
return
$this;
70
}
71
77
public
function
setAccepted
()
78
{
79
$this->
setStatus
(
MessageStatus::ACCEPTED
);
80
return
$this;
81
}
82
86
public
function
getServiceRequest
(): ?DTO\
Request
87
{
88
return
$this->serviceRequest
;
89
}
90
94
public
function
setServiceRequest
(DTO\
Request
$serviceRequest
):
SendMessage
95
{
96
$this->serviceRequest =
$serviceRequest
;
97
return
$this;
98
}
99
103
public
function
getServiceResponse
(): ?DTO\
Response
104
{
105
return
$this->serviceResponse
;
106
}
107
111
public
function
setServiceResponse
(DTO\
Response
$serviceResponse
):
SendMessage
112
{
113
$this->serviceResponse =
$serviceResponse
;
114
return
$this;
115
}
116
}
Bitrix\Main\ORM\Data\Result
Definition
result.php:16
Bitrix\Main\Result
Definition
result.php:14
Bitrix\MessageService\DTO\Request
Definition
request.php:6
Bitrix\MessageService\DTO\Response
Definition
response.php:6
Bitrix\MessageService\MessageStatus
Definition
messagestatus.php:9
Bitrix\MessageService\MessageStatus\ACCEPTED
const ACCEPTED
Definition
messagestatus.php:17
Bitrix\MessageService\Sender\Result\SendMessage
Definition
sendmessage.php:9
Bitrix\MessageService\Sender\Result\SendMessage\setAccepted
setAccepted()
Definition
sendmessage.php:77
Bitrix\MessageService\Sender\Result\SendMessage\setServiceResponse
setServiceResponse(DTO\Response $serviceResponse)
Definition
sendmessage.php:111
Bitrix\MessageService\Sender\Result\SendMessage\getId
getId()
Definition
sendmessage.php:29
Bitrix\MessageService\Sender\Result\SendMessage\getServiceRequest
getServiceRequest()
Definition
sendmessage.php:86
Bitrix\MessageService\Sender\Result\SendMessage\$serviceResponse
$serviceResponse
Definition
sendmessage.php:14
Bitrix\MessageService\Sender\Result\SendMessage\$status
$status
Definition
sendmessage.php:12
Bitrix\MessageService\Sender\Result\SendMessage\setStatus
setStatus($status)
Definition
sendmessage.php:66
Bitrix\MessageService\Sender\Result\SendMessage\$externalId
$externalId
Definition
sendmessage.php:11
Bitrix\MessageService\Sender\Result\SendMessage\setServiceRequest
setServiceRequest(DTO\Request $serviceRequest)
Definition
sendmessage.php:94
Bitrix\MessageService\Sender\Result\SendMessage\setId
setId($id)
Definition
sendmessage.php:20
Bitrix\MessageService\Sender\Result\SendMessage\getStatus
getStatus()
Definition
sendmessage.php:56
Bitrix\MessageService\Sender\Result\SendMessage\$serviceRequest
$serviceRequest
Definition
sendmessage.php:13
Bitrix\MessageService\Sender\Result\SendMessage\getExternalId
getExternalId()
Definition
sendmessage.php:37
Bitrix\MessageService\Sender\Result\SendMessage\getServiceResponse
getServiceResponse()
Definition
sendmessage.php:103
Bitrix\MessageService\Sender\Result\SendMessage\$id
$id
Definition
sendmessage.php:10
Bitrix\MessageService\Sender\Result\SendMessage\setExternalId
setExternalId($externalId)
Definition
sendmessage.php:46
Bitrix\MessageService\DTO
Definition
request.php:3
Bitrix\MessageService\Sender\Result
Definition
httprequestresult.php:2
modules
messageservice
lib
sender
result
sendmessage.php
Создано системой
1.10.0