1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
PromotionUpdateData.php
См. документацию.
1
<?php
2
3
declare(strict_types=1);
4
5
namespace
Bitrix\Im\V2\Promotion\Event\Update
;
6
7
use
Bitrix\Im\V2\Promotion\Entity\PromotionList
;
8
use
Bitrix\Im\V2\Rest\RestConvertible
;
9
use
Bitrix\Main\Validation\Rule\Recursive\Validatable
;
10
11
class
PromotionUpdateData
implements
RestConvertible
12
{
13
#[Validatable]
14
private
PromotionList
$addedPromotions;
15
#[Validatable]
16
private
PromotionList
$deletedPromotions;
17
18
public
function
__construct
(
PromotionList
$addedPromotions, ?
PromotionList
$deletedPromotions =
null
)
19
{
20
$this->addedPromotions = $addedPromotions;
21
$this->deletedPromotions = $deletedPromotions ??
new
PromotionList
();
22
}
23
24
public
static
function
getRestEntityName
(): string
25
{
26
return
'promotionUpdateData'
;
27
}
28
29
public
function
toRestFormat
(
array
$option
= []):
array
30
{
31
return
[
32
'addedPromotions'
=> $this->addedPromotions->toRestFormat(),
33
'deletedPromotions'
=> $this->deletedPromotions->toRestFormat(),
34
];
35
}
36
}
Bitrix\Im\V2\Promotion\Entity\PromotionList
Определения
PromotionList.php:14
Bitrix\Im\V2\Promotion\Event\Update\PromotionUpdateData
Определения
PromotionUpdateData.php:12
Bitrix\Im\V2\Promotion\Event\Update\PromotionUpdateData\getRestEntityName
static getRestEntityName()
Определения
PromotionUpdateData.php:24
Bitrix\Im\V2\Promotion\Event\Update\PromotionUpdateData\toRestFormat
toRestFormat(array $option=[])
Определения
PromotionUpdateData.php:29
Bitrix\Im\V2\Promotion\Event\Update\PromotionUpdateData\__construct
__construct(PromotionList $addedPromotions, ?PromotionList $deletedPromotions=null)
Определения
PromotionUpdateData.php:18
Bitrix\Main\Validation\Rule\Recursive\Validatable
Определения
Validatable.php:11
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
Bitrix\Im\V2\Rest\RestConvertible
Определения
RestConvertible.php:6
Bitrix\Im\V2\Promotion\Event\Update
Определения
PromotionUpdateData.php:5
$option
$option
Определения
options.php:1711
bitrix
modules
im
lib
V2
Promotion
Event
Update
PromotionUpdateData.php
Создано системой
1.14.0