Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
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
Definition
baseservice.php:12
Bitrix\Location\Entity\Source
Definition
source.php:17
Bitrix\Location\Infrastructure\Service\Config\Container
Definition
container.php:8
Bitrix\Location\Infrastructure\Service\Config\Container\get
get($id)
Definition
container.php:16
Bitrix\Location\Service\SourceService
Definition
sourceservice.php:15
Bitrix\Location\Service\SourceService\__construct
__construct(Container $config)
Definition
sourceservice.php:42
Bitrix\Location\Service\SourceService\getSource
getSource()
Definition
sourceservice.php:33
Bitrix\Location\Service\SourceService\getSourceCode
getSourceCode()
Definition
sourceservice.php:25
Bitrix\Location\Service\SourceService\$source
$source
Definition
sourceservice.php:20
Bitrix\Location\Service\SourceService\$instance
static $instance
Definition
sourceservice.php:17
Bitrix\Location\Entity\Source
Definition
config.php:3
Bitrix\Location\Service
Definition
addressservice.php:3
modules
location
lib
service
sourceservice.php
Создано системой
1.10.0