Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
error.php
1
<?php
2
3
namespace
Bitrix\Sale\PaySystem
;
4
5
use
Bitrix\Main
;
6
11
final
class
Error
extends
Main\Error
12
{
13
private
const
BINDING_LEVEL_BUYER = 10;
14
15
private
$bindingLevel =
null
;
16
17
protected
function
setBindingLevel
($level) : self
18
{
19
$this->bindingLevel = $level;
20
21
return
$this;
22
}
23
24
public
function
isVisibleForBuyer
() : bool
25
{
26
return
$this->bindingLevel === self::BINDING_LEVEL_BUYER;
27
}
28
29
public
static
function
createForBuyer
(
$message
,
$code
= 0,
$customData
=
null
) : self
30
{
31
$error =
new
static
(
$message
,
$code
,
$customData
);
32
33
return
$error->setBindingLevel(self::BINDING_LEVEL_BUYER);
34
}
35
36
public
static
function
create
(
$message
,
$code
= 0,
$customData
=
null
) : self
37
{
38
return
new
static
(
$message
,
$code
,
$customData
);
39
}
40
}
Bitrix\Main\Error
Definition
error.php:14
Bitrix\Main\Error\$code
$code
Definition
error.php:16
Bitrix\Main\Error\$message
$message
Definition
error.php:19
Bitrix\Main\Error\$customData
$customData
Definition
error.php:23
Bitrix\Sale\PaySystem\Error\isVisibleForBuyer
isVisibleForBuyer()
Definition
error.php:24
Bitrix\Sale\PaySystem\Error\setBindingLevel
setBindingLevel($level)
Definition
error.php:17
Bitrix\Sale\PaySystem\Error\create
static create($message, $code=0, $customData=null)
Definition
error.php:36
Bitrix\Sale\PaySystem\Error\createForBuyer
static createForBuyer($message, $code=0, $customData=null)
Definition
error.php:29
Bitrix\Main
Bitrix\Sale\PaySystem
Definition
applepay.php:3
modules
sale
lib
paysystem
error.php
Создано системой
1.10.0