Completed
Pull Request — development (#720)
by Thomas
32:54 queued 25:33
created

GeoCacheLogsArchivedEntity::isNew()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php 
2
3
class GeoCacheLogsArchivedEntity extends Oc\Repository\AbstractEntity
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
4
{
5
    /** @var int */
6
    public $id;
7
8
    /** @var string */
9
    public $uuid;
10
11
    /** @var int */
12
    public $node;
13
14
    /** @var DateTime */
15
    public $dateCreated;
16
17
    /** @var DateTime */
18
    public $entryLastModified;
19
20
    /** @var DateTime */
21
    public $lastModified;
22
23
    /** @var string */
24
    public $okapiSyncbase;
25
26
    /** @var DateTime */
27
    public $logLastModified;
28
29
    /** @var int */
30
    public $cacheId;
31
32
    /** @var int */
33
    public $userId;
34
35
    /** @var int */
36
    public $type;
37
38
    /** @var int */
39
    public $ocTeamComment;
40
41
    /** @var DateTime */
42
    public $date;
43
44
    /** @var DateTime */
45
    public $orderDate;
46
47
    /** @var int */
48
    public $needsMaintenance;
49
50
    /** @var int */
51
    public $listingOutdated;
52
53
    /** @var longtext */
54
    public $text;
55
56
    /** @var int */
57
    public $textHtml;
58
59
    /** @var int */
60
    public $textHtmledit;
61
62
    /** @var int */
63
    public $ownerNotified;
64
65
    /** @var smallint */
66
    public $picture;
67
68
    /** @var DateTime */
69
    public $deletionDate;
70
71
    /** @var int */
72
    public $deletedBy;
73
74
    /** @var int */
75
    public $restoredBy;
76
77
    /**
78
     * @return bool
79
     */
80
    public function isNew()
81
    {
82
        return $this->id=== null;
83
    }
84
}
85