Completed
Push — development ( daed94...13a157 )
by Thomas
18s
created

GeoCacheLogEntity   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 117
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 117
rs 10
c 0
b 0
f 0
wmc 1
lcom 1
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A isNew() 0 4 1
1
<?php
2
3
namespace Oc\GeoCache\Persistence\GeoCacheLog;
4
5
use DateTime;
6
use Oc\Repository\AbstractEntity;
7
8
class GeoCacheLogEntity extends AbstractEntity
9
{
10
    /**
11
     * @var int
12
     */
13
    public $id;
14
15
    /**
16
     * @var string
17
     */
18
    public $uuid;
19
20
    /**
21
     * @var int
22
     */
23
    public $node;
24
25
    /**
26
     * @var DateTime
0 ignored issues
show
introduced by
DateTime => \DateTime
Loading history...
27
     */
28
    public $dateCreated;
29
30
    /**
31
     * @var DateTime
0 ignored issues
show
introduced by
DateTime => \DateTime
Loading history...
32
     */
33
    public $entryLastModified;
34
35
    /**
36
     * @var DateTime
0 ignored issues
show
introduced by
DateTime => \DateTime
Loading history...
37
     */
38
    public $lastModified;
39
40
    /**
41
     * @var int
42
     */
43
    public $okapiSyncbase;
44
45
    /**
46
     * @var DateTime
0 ignored issues
show
introduced by
DateTime => \DateTime
Loading history...
47
     */
48
    public $logLastModified;
49
50
    /**
51
     * @var int
52
     */
53
    public $cacheId;
54
55
    /**
56
     * @var int
57
     */
58
    public $userId;
59
60
    /**
61
     * @var int
62
     */
63
    public $type;
64
65
    /**
66
     * @var bool
67
     */
68
    public $ocTeamComment;
69
70
    /**
71
     * @var DateTime
0 ignored issues
show
introduced by
DateTime => \DateTime
Loading history...
72
     */
73
    public $date;
74
75
    /**
76
     * @var DateTime
0 ignored issues
show
introduced by
DateTime => \DateTime
Loading history...
77
     */
78
    public $orderDate;
79
80
    /**
81
     * @var bool
82
     */
83
    public $needsMaintenance;
84
85
    /**
86
     * @var bool
87
     */
88
    public $listingOutdated;
89
90
    /**
91
     * @var string
92
     */
93
    public $text;
94
95
    /**
96
     * @var bool
97
     */
98
    public $textHtml;
99
100
    /**
101
     * @var bool
102
     */
103
    public $textHtmledit;
104
105
    /**
106
     * @var bool
107
     */
108
    public $ownerNotified;
109
110
    /**
111
     * @var int
112
     */
113
    public $picture;
114
115
    /**
116
     * Checks if the entity is new.
117
     *
118
     * @return bool
119
     */
120
    public function isNew()
121
    {
122
        return $this->id === null;
123
    }
124
}
125