Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
DebuggerState.php
1
<?php
2
3
namespace
Bitrix\Bizproc\Debugger\Session
;
4
5
class
DebuggerState
6
{
7
public
const
RUN
= 0;
8
public
const
NEXT_STEP
= 1;
9
public
const
STOP
= 2;
10
public
const
PAUSE
= 3;
11
public
const
UNDEFINED
= -1;
12
13
private
int
$stateId;
14
15
public
function
__construct
(
int
$stateId)
16
{
17
$this->stateId = $stateId;
18
}
19
20
public
static
function
undefined
(): self
21
{
22
return
new
self
(
self::UNDEFINED
);
23
}
24
25
public
static
function
run
(): self
26
{
27
return
new
self
(
self::RUN
);
28
}
29
30
public
static
function
nextStep
(): self
31
{
32
return
new
self
(
self::NEXT_STEP
);
33
}
34
35
public
static
function
pause
(): self
36
{
37
return
new
self
(
self::PAUSE
);
38
}
39
40
public
static
function
stop
(): self
41
{
42
return
new
self
(
self::STOP
);
43
}
44
45
public
function
is
(
int
$stateId): bool
46
{
47
return
$this->stateId === $stateId;
48
}
49
50
public
function
getId
(): int
51
{
52
return
$this->stateId;
53
}
54
}
Bitrix\Bizproc\Debugger\Session\DebuggerState
Definition
DebuggerState.php:6
Bitrix\Bizproc\Debugger\Session\DebuggerState\stop
static stop()
Definition
DebuggerState.php:40
Bitrix\Bizproc\Debugger\Session\DebuggerState\getId
getId()
Definition
DebuggerState.php:50
Bitrix\Bizproc\Debugger\Session\DebuggerState\pause
static pause()
Definition
DebuggerState.php:35
Bitrix\Bizproc\Debugger\Session\DebuggerState\__construct
__construct(int $stateId)
Definition
DebuggerState.php:15
Bitrix\Bizproc\Debugger\Session\DebuggerState\STOP
const STOP
Definition
DebuggerState.php:9
Bitrix\Bizproc\Debugger\Session\DebuggerState\nextStep
static nextStep()
Definition
DebuggerState.php:30
Bitrix\Bizproc\Debugger\Session\DebuggerState\NEXT_STEP
const NEXT_STEP
Definition
DebuggerState.php:8
Bitrix\Bizproc\Debugger\Session\DebuggerState\UNDEFINED
const UNDEFINED
Definition
DebuggerState.php:11
Bitrix\Bizproc\Debugger\Session\DebuggerState\RUN
const RUN
Definition
DebuggerState.php:7
Bitrix\Bizproc\Debugger\Session\DebuggerState\run
static run()
Definition
DebuggerState.php:25
Bitrix\Bizproc\Debugger\Session\DebuggerState\undefined
static undefined()
Definition
DebuggerState.php:20
Bitrix\Bizproc\Debugger\Session\DebuggerState\PAUSE
const PAUSE
Definition
DebuggerState.php:10
Bitrix\Bizproc\Debugger\Session\DebuggerState\is
is(int $stateId)
Definition
DebuggerState.php:45
Bitrix\Bizproc\Debugger\Session
Definition
DebuggerState.php:3
modules
bizproc
lib
Debugger
Session
DebuggerState.php
Создано системой
1.10.0