Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
service.php
1
<?php
2
3
namespace
Bitrix\Seo\Checkout
;
4
9
class
Service
implements
IService
10
{
11
const
GROUP
=
'checkout'
;
12
const
TYPE_YANDEX
=
'yandex'
;
13
const
TYPE_YOOKASSA
=
'yookassa'
;
14
20
public
static
function
getInstance
()
21
{
22
static
$instance =
null
;
23
if
($instance ===
null
)
24
{
25
$instance =
new
static
();
26
}
27
28
return
$instance;
29
}
30
35
public
static
function
getEngineCode
($type)
36
{
37
return
static::GROUP.
'.'
.$type;
38
}
39
43
public
static
function
getTypes
()
44
{
45
return
[
46
static::TYPE_YANDEX,
47
static::TYPE_YOOKASSA,
48
];
49
}
50
58
public
static
function
getAuthAdapter
($type)
59
{
60
return
AuthAdapter::create
($type)->setService(static::getInstance());
61
}
62
}
Bitrix\Seo\Checkout\AuthAdapter\create
static create($type, IService $service=null)
Definition
authadapter.php:40
Bitrix\Seo\Checkout\Service
Definition
service.php:10
Bitrix\Seo\Checkout\Service\TYPE_YANDEX
const TYPE_YANDEX
Definition
service.php:12
Bitrix\Seo\Checkout\Service\getTypes
static getTypes()
Definition
service.php:43
Bitrix\Seo\Checkout\Service\getEngineCode
static getEngineCode($type)
Definition
service.php:35
Bitrix\Seo\Checkout\Service\TYPE_YOOKASSA
const TYPE_YOOKASSA
Definition
service.php:13
Bitrix\Seo\Checkout\Service\getInstance
static getInstance()
Definition
service.php:20
Bitrix\Seo\Checkout\Service\GROUP
const GROUP
Definition
service.php:11
Bitrix\Seo\Checkout\Service\getAuthAdapter
static getAuthAdapter($type)
Definition
service.php:58
Bitrix\Seo\Checkout\IService
Definition
iservice.php:10
Bitrix\Seo\Checkout
Definition
authadapter.php:3
modules
seo
lib
checkout
service.php
Создано системой
1.10.0