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

EventSubscriptionQueryProperty::created()   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 EventSubscriptionQueryProperty
6
{
7
    private static $CREATED;
8
    private static $TENANT_ID;
9
10
    public static function created(): QueryPropertyImpl
11
    {
12
        if (self::$CREATED == null) {
13
            self::$CREATED = new QueryPropertyImpl("CREATED_");
14
        }
15
        return self::$CREATED;
16
    }
17
18
    public static function tenantId(): QueryPropertyImpl
19
    {
20
        if (self::$TENANT_ID == null) {
21
            self::$TENANT_ID = new QueryPropertyImpl("TENANT_ID_");
22
        }
23
        return self::$TENANT_ID;
24
    }
25
}
26