Test Failed
Push — main ( 5af89f...c76fcf )
by Bingo
05:51
created

ExternalTaskQueryProperty::priority()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 6
rs 10
cc 2
nc 2
nop 0
1
<?php
2
3
namespace Jabe\Engine\Impl;
4
5
class ExternalTaskQueryProperty
6
{
7
    private static $ID;
8
    private static $LOCK_EXPIRATION_TIME;
9
    private static $PROCESS_INSTANCE_ID;
10
    private static $PROCESS_DEFINITION_ID;
11
    private static $PROCESS_DEFINITION_KEY;
12
    private static $TENANT_ID;
13
    private static $PRIORITY;
14
15
    public static function id(): QueryPropertyImpl
16
    {
17
        if (self::$ID == null) {
18
            self::$ID = new QueryPropertyImpl("ID_");
19
        }
20
        return self::$ID;
21
    }
22
23
    public static function lockExpirationTime(): QueryPropertyImpl
24
    {
25
        if (self::$LOCK_EXPIRATION_TIME == null) {
26
            self::$LOCK_EXPIRATION_TIME = new QueryPropertyImpl("LOCK_EXP_TIME_");
27
        }
28
        return self::$LOCK_EXPIRATION_TIME;
29
    }
30
31
    public static function processInstanceId(): QueryPropertyImpl
32
    {
33
        if (self::$PROCESS_INSTANCE_ID == null) {
34
            self::$PROCESS_INSTANCE_ID = new QueryPropertyImpl("PROC_INST_ID_");
35
        }
36
        return self::$PROCESS_INSTANCE_ID;
37
    }
38
39
    public static function processDefinitionId(): QueryPropertyImpl
40
    {
41
        if (self::$PROCESS_DEFINITION_ID == null) {
42
            self::$PROCESS_DEFINITION_ID = new QueryPropertyImpl("PROC_DEF_ID_");
43
        }
44
        return self::$PROCESS_DEFINITION_ID;
45
    }
46
47
    public static function processDefinitionKey(): QueryPropertyImpl
48
    {
49
        if (self::$PROCESS_DEFINITION_KEY == null) {
50
            self::$PROCESS_DEFINITION_KEY = new QueryPropertyImpl("PROC_DEF_KEY_");
51
        }
52
        return self::$PROCESS_DEFINITION_KEY;
53
    }
54
55
    public static function tenantId(): QueryPropertyImpl
56
    {
57
        if (self::$TENANT_ID == null) {
58
            self::$TENANT_ID = new QueryPropertyImpl("TENANT_ID_");
59
        }
60
        return self::$TENANT_ID;
61
    }
62
63
    public static function priority(): QueryPropertyImpl
64
    {
65
        if (self::$PRIORITY == null) {
66
            self::$PRIORITY = new QueryPropertyImpl("PRIORITY_");
67
        }
68
        return self::$PRIORITY;
69
    }
70
}
71