Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
service.php
1<?php
2
3namespace Bitrix\Seo\Checkout;
4
9class 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}
static create($type, IService $service=null)
static getEngineCode($type)
Definition service.php:35
static getAuthAdapter($type)
Definition service.php:58