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

GeoCacheTypeEntity   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 43
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 43
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 Oc\Repository\AbstractEntity;
6
7
class GeoCacheTypeEntity 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 int */
19
    public $ordinal;
20
21
    /** @var string */
22
    public $short;
23
24
    /** @var string */
25
    public $de;
26
27
    /** @var string */
28
    public $en;
29
30
    /** @var string */
31
    public $iconLarge;
32
33
    /** @var string */
34
    public $short2;
35
36
    /** @var int */
37
    public $short2TransId;
38
39
    /** @var string */
40
    public $kmlName;
41
42
    /**
43
     * @return bool
44
     */
45
    public function isNew() : bool
46
    {
47
        return $this->id === null;
48
    }
49
}
50