Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
sourceservice.php
1<?php
2
4
8
14final class SourceService extends BaseService
15{
17 protected static $instance;
18
20 protected $source;
21
25 public function getSourceCode(): string
26 {
27 return $this->source->getCode();
28 }
29
33 public function getSource(): ?Source
34 {
35 return $this->source;
36 }
37
42 protected function __construct(Container $config)
43 {
44 parent::__construct($config);
45 $this->source = $config->get('source');
46 }
47}