Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
inboxmanager.php
1<?php
2
3
5
6
8
10{
14 private $content;
18 private $attachmentManager;
19
24 public static function createInstance(string $content): InboxManager
25 {
26 return new self($content);
27 }
28
33 public function __construct(string $content)
34 {
35 $this->content = $content;
36 }
37
41 public function parseContent(): InboxManager
42 {
43 $this->attachmentManager = InboxAttachmentManager::createInstance($this->content)
44 ->parse();
45
46 return $this;
47 }
48
49
53 public function getComponent(): ?Calendar
54 {
55 return $this->attachmentManager->getComponent();
56 }
57
58
59}