1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
PromotionParams.php
См. документацию.
1<?php
2
3declare(strict_types=1);
4
5namespace Bitrix\Im\V2\Promotion\Entity;
6
7use Bitrix\Im\V2\Rest\RestConvertible;
8use Bitrix\Main\Validation\Rule\Min;
9
11{
12 #[Min(0)]
13 private ?int $chatId;
14
15 public static function createFromArray(array $params): self
16 {
17 $promotionParams = new self();
18
19 if (isset($params['chatId']))
20 {
21 $promotionParams->setChatId((int)$params['chatId']);
22 }
23
24 return $promotionParams;
25 }
26
27 public function setChatId(int $chatId): self
28 {
29 $this->chatId = $chatId;
30
31 return $this;
32 }
33
34 public function getChatId(): ?int
35 {
36 return $this->chatId ?? null;
37 }
38
39 public static function getRestEntityName(): string
40 {
41 return 'promotionParams';
42 }
43
44 public function toRestFormat(array $option = []): array
45 {
46 return [
47 'chatId' => $this->getChatId(),
48 ];
49 }
50}
static createFromArray(array $params)
Определения PromotionParams.php:15
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
if($inWords) echo htmlspecialcharsbx(Number2Word_Rus(roundEx($totalVatSum $params['CURRENCY']
Определения template.php:799
$option
Определения options.php:1711