1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
service.php
См. документацию.
1<?php
2
3namespace Bitrix\Seo\Checkout;
4
9class Service implements IService
10{
11 public const GROUP = 'checkout';
12 public const TYPE_YANDEX = 'yandex';
13 public const TYPE_YOOKASSA = 'yookassa';
14 public const TYPE_TBANK_BUSINESS = 'tbankbusiness';
15
21 public static function getInstance(): static
22 {
23 static $instance = null;
24 if ($instance === null)
25 {
26 $instance = new static();
27 }
28
29 return $instance;
30 }
31
36 public static function getEngineCode($type): string
37 {
38 return static::GROUP . '.' . $type;
39 }
40
44 public static function getTypes(): array
45 {
46 return [
47 static::TYPE_YANDEX,
48 static::TYPE_YOOKASSA,
49 static::TYPE_TBANK_BUSINESS,
50 ];
51 }
52
60 public static function getAuthAdapter($type): AuthAdapter
61 {
62 return AuthAdapter::create($type)->setService(static::getInstance());
63 }
64}
$type
Определения options.php:106
static create($type, IService $service=null)
Определения authadapter.php:40
setService(IService $service)
Определения authadapter.php:59
const TYPE_YANDEX
Определения service.php:12
static getTypes()
Определения service.php:44
static getEngineCode($type)
Определения service.php:36
const TYPE_YOOKASSA
Определения service.php:13
static getInstance()
Определения service.php:21
const GROUP
Определения service.php:11
static getAuthAdapter($type)
Определения service.php:60
const TYPE_TBANK_BUSINESS
Определения service.php:14
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$instance
Определения ps_b24_final.php:14