Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
factorybase.php
1<?php
2
4
10
12{
18 public const SERVICE_NAME = '';
26 protected ?Context $context;
27
31 // abstract public function getVendorSyncService(): VendorSyncService;
32
37 abstract public function getContext(): ?Context;
38
43 {
44 if ($connection->getOwner() === null)
45 {
46 throw new BaseException('the connection must have owner');
47 }
48
49 $this->connection = $connection;
50 $this->context = $context;
51 }
52
56 public function getServiceName(): string
57 {
58 return static::SERVICE_NAME;
59 }
60
61 public function canSubscribeSection(): bool
62 {
63 return false;
64 }
65
66 public function canSubscribeConnection(): bool
67 {
68 return false;
69 }
70
72 {
73 return null;
74 }
75}
__construct(Connection $connection, Context $context=null)