1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
sourceservice.php
См. документацию.
1<?php
2
3namespace Bitrix\Location\Service;
4
5use Bitrix\Location\Common\BaseService;
6use Bitrix\Location\Entity\Source;
7use Bitrix\Location\Infrastructure\Service\Config\Container;
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}
__construct(Container $config)
Определения sourceservice.php:42
$config
Определения quickway.php:69