Completed
Pull Request — development (#807)
by
unknown
05:10
created

CachesEntity   A

Complexity

Total Complexity 7

Size/Duplication

Total Lines 136
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

6 Methods

Rating   Name   Duplication   Size   Complexity  
A isActiveAndFindableAndSoOn() 0 7 2
A getOCid() 0 4 1
A getStatus() 0 4 1
A getID() 0 4 1
A getName() 0 4 1
A getGCid() 0 4 1
1
<?php
2
3
namespace Oc\Entity;
4
5
use Oc\Repository\AbstractEntity;
6
#use Symfony\Component\Security\Core\User\UserInterface; ??
7
8
#class CachesEntity extends AbstractEntity implements UserInterface
9
class CachesEntity extends AbstractEntity implements CachesInterface
0 ignored issues
show
Bug introduced by
There is one abstract method isNew in this class; you could implement it, or declare this class as abstract.
Loading history...
10
{
11
12
    /**
13
     * @var int
14
     */
15
    public $cache_id;
16
17
    /**
18
     * @var datetime
19
     */
20
    public $date_created;
21
22
    /**
23
     * @var datetime
24
     */
25
    public $last_modified;
26
27
    /**
28
     * @var int
29
     */
30
    public $user_id;
31
32
    /**
33
     * @var string
34
     */
35
    public $name;
36
37
    /**
38
     * @var float (DB:double?)
39
     */
40
    public $longitude;
41
42
    /**
43
     * @var float (DB:double?)
44
     */
45
    public $latitude;
46
47
    /**
48
     * @var int
49
     */
50
    public $status;
51
52
    /**
53
     * @var string
54
     */
55
    public $country;
56
57
    /**
58
     * @var int
59
     */
60
    public $difficulty;
61
62
    /**
63
     * @var int
64
     */
65
    public $terrain;
66
67
    /**
68
     * @var int
69
     */
70
    public $size;
71
72
    /**
73
     * @var string (DB:varchar)
74
     */
75
    public $wp_gc;
76
77
    /**
78
     * @var string (DB:varchar)
79
     */
80
    public $wp_oc;
81
82
    /**
83
     *
84
     */
85
    public function isActiveAndFindableAndSoOn(): bool
86
    {
87
        if ($this->status == 1)
88
            return $this->true;
89
        else
90
            return $this->false;
91
    }
92
93
    public function getID(): int
94
    {
95
        return $this->cache_id;
96
    }
97
98
    public function getName(): string
99
    {
100
        return $this->name;
101
    }
102
103
    public function getGCid(): string
104
    {
105
        return $this->wp_gc;
106
    }
107
108
    public function getOCid(): string
109
    {
110
        return $this->wp_oc;
111
    }
112
113
    public function getStatus(): string
114
    {
115
        return $this->status;
116
    }
117
118
/*
119
    public function getRoles(): array
120
    {
121
        return $this->roles;
122
    }
123
124
    public function getPassword(): ?string
125
    {
126
        return $this->password;
127
    }
128
129
    public function getSalt(): string
130
    {
131
        return '';
132
    }
133
134
    public function getUsername(): string
135
    {
136
        return $this->username;
137
    }
138
139
    public function eraseCredentials(): void
140
    {
141
    }
142
*/
143
144
}
145