Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
jsevent.php
1<?php
2
3namespace Bitrix\UI\Buttons;
4
5final class JsEvent implements \JsonSerializable
6{
10 private $event;
11
16 public function __construct($event)
17 {
18 $this->setEvent($event);
19 }
20
24 public function getEvent()
25 {
26 return $this->event;
27 }
28
34 public function setEvent($event)
35 {
36 if (is_string($event))
37 {
38 $this->event = $event;
39 }
40
41 return $this;
42 }
43
51 public function jsonSerialize()
52 {
53 return [
54 'event' => $this->getEvent(),
55 ];
56 }
57}