Completed
Pull Request — development (#813)
by
unknown
04:11
created

GeoCacheStatusEntity::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
namespace Oc\Entity;
4
5
use Oc\Repository\AbstractEntity;
6
7
class GeoCacheStatusEntity extends AbstractEntity
8
{
9
    /** @var int */
10
    public $id;
11
12
    /** @var string */
13
    public $name;
14
15
    /** @var int */
16
    public $transId;
17
18
    /** @var string */
19
    public $de;
20
21
    /** @var string */
22
    public $en;
23
24
    /** @var int */
25
    public $allowUserView;
26
27
    /** @var int */
28
    public $allowOwnerEditStatus;
29
30
    /** @var int */
31
    public $allowUserLog;
32
33
    /**
34
     * @return bool
35
     */
36
    public function isNew() : bool
37
    {
38
        return $this->id === null;
39
    }
40
}
41