Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
incomingattachmentmanager.php
1<?php
2
3
5
6
9
11{
12 private $data;
16 private $events;
17 private $method;
18
19 public static function getInstance(array $params)
20 {
21 return new self($params);
22 }
23
24 public function __construct(array $params)
25 {
26 $this->data = $params['data'];
27 }
28
29 public function getAttachment()
30 {
31 return $this->events;
32 }
33
35 {
36 $manager = ParserManager::getInstance($this->data);
37 $this->events = $manager->getProcessedEvents();
38 $this->method = $manager->getMethod();
39
40 return $this;
41 }
42
43 public function convertEventFields()
44 {
45
46 }
47
48 public function getEvent()
49 {
50 return !empty($this->events)
51 ? $this->events[0]
52 : [];
53 }
54
55 public function getMethod()
56 {
57 return $this->method;
58 }
59}