Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
clienttype.php
1
<?php
2
3
namespace
Bitrix\Sale\PaySystem
;
4
8
abstract
class
ClientType
9
{
15
public
const
DEFAULT
=
self::B2C
;
16
20
public
const
B2C
=
'b2c'
;
21
25
public
const
B2B
=
'b2b'
;
26
32
public
static
function
getAvailableValues
(): array
33
{
34
return
[
35
self::B2C
,
36
self::B2B
,
37
];
38
}
39
46
public
static
function
isValid
(
string
$value): bool
47
{
48
return
in_array($value, self::getAvailableValues(),
true
);
49
}
50
}
Bitrix\Sale\PaySystem\ClientType
Definition
clienttype.php:9
Bitrix\Sale\PaySystem\ClientType\getAvailableValues
static getAvailableValues()
Definition
clienttype.php:32
Bitrix\Sale\PaySystem\ClientType\B2B
const B2B
Definition
clienttype.php:25
Bitrix\Sale\PaySystem\ClientType\isValid
static isValid(string $value)
Definition
clienttype.php:46
Bitrix\Sale\PaySystem\ClientType\B2C
const B2C
Definition
clienttype.php:20
Bitrix\Sale\PaySystem\ClientType\DEFAULT
const DEFAULT
Definition
clienttype.php:15
Bitrix\Sale\PaySystem
Definition
applepay.php:3
modules
sale
lib
paysystem
clienttype.php
Создано системой
1.10.0