1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
sourceservice.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Location\Service;
4
5
use Bitrix\Location\Common\BaseService;
6
use Bitrix\Location\Entity\Source;
7
use Bitrix\Location\Infrastructure\Service\Config\Container;
8
14
final
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
}
Bitrix\Location\Common\BaseService
Определения
baseservice.php:11
Bitrix\Location\Infrastructure\Service\Config\Container
Определения
container.php:8
Bitrix\Location\Service\SourceService
Определения
sourceservice.php:15
Bitrix\Location\Service\SourceService\__construct
__construct(Container $config)
Определения
sourceservice.php:42
Bitrix\Location\Service\SourceService\getSource
getSource()
Определения
sourceservice.php:33
Bitrix\Location\Service\SourceService\getSourceCode
getSourceCode()
Определения
sourceservice.php:25
Bitrix\Location\Service\SourceService\$source
$source
Определения
sourceservice.php:20
Bitrix\Location\Service\SourceService\$instance
static $instance
Определения
sourceservice.php:17
Bitrix\Location\Entity\Source
Определения
config.php:3
$config
$config
Определения
quickway.php:69
bitrix
modules
location
lib
service
sourceservice.php
Создано системой
1.14.0