Completed
Pull Request — development (#824)
by
unknown
04:40
created

GeoCacheReportsEntity   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 55
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 55
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\Entity;
4
5
use DateTime;
6
use Oc\Repository\AbstractEntity;
7
8
class GeoCacheReportsEntity extends AbstractEntity
9
{
10
    /** @var int */
11
    public $id;
12
13
    /** @var DateTime */
14
    public $dateCreated;
15
16
    /** @var int */
17
    public $cacheid;
18
19
    /** @var int */
20
    public $userid;
21
22
    /** @var int */
23
    public $reason;
24
25
    /** @var string */
26
    public $note;
27
28
    /** @var int */
29
    public $status;
30
31
    /** @var int */
32
    public $adminid;
33
34
    /** @var string */
35
    public $lastmodified;
36
37
    /** @var string */
38
    public $comment;
39
40
    /** @var UserEntity */
41
    public $user;
42
43
    /** @var UserEntity */
44
    public $adminName;
45
46
    /** @var GeoCachesEntity */
47
    public $cache;
48
49
    /** @var GeoCacheReportReasonsEntity */
50
    public $reportReason;
51
52
    /** @var GeoCacheReportStatusEntity */
53
    public $reportStatus;
54
55
    /**
56
     * @return bool
57
     */
58
    public function isNew() : bool
59
    {
60
        return $this->id === null;
61
    }
62
}
63