GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Cache::getId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
namespace Neta\Shopware\SDK\Entity;
4
5
/**
6
 * Class Cache.
7
 */
8
class Cache extends Base
9
{
10
    /**
11
     * @var string
12
     */
13
    protected $id;
14
    /**
15
     * @var string
16
     */
17
    protected $dir;
18
    /**
19
     * @var string
20
     */
21
    protected $size;
22
    /**
23
     * @var int
24
     */
25
    protected $files;
26
    /**
27
     * @var string
28
     */
29
    protected $freeSpace;
30
    /**
31
     * @var string
32
     */
33
    protected $name;
34
    /**
35
     * @var string
36
     */
37
    protected $backend;
38
39
    /**
40
     * @return string
41
     */
42
    public function getId()
43
    {
44
        return $this->id;
45
    }
46
47
    /**
48
     * @param string $id
49
     *
50
     * @return Cache
51
     */
52
    public function setId($id)
53
    {
54
        $this->id = $id;
55
56
        return $this;
57
    }
58
59
    /**
60
     * @return string
61
     */
62
    public function getDir()
63
    {
64
        return $this->dir;
65
    }
66
67
    /**
68
     * @param string $dir
69
     *
70
     * @return Cache
71
     */
72
    public function setDir($dir)
73
    {
74
        $this->dir = $dir;
75
76
        return $this;
77
    }
78
79
    /**
80
     * @return string
81
     */
82
    public function getSize()
83
    {
84
        return $this->size;
85
    }
86
87
    /**
88
     * @param string $size
89
     *
90
     * @return Cache
91
     */
92
    public function setSize($size)
93
    {
94
        $this->size = $size;
95
96
        return $this;
97
    }
98
99
    /**
100
     * @return int
101
     */
102
    public function getFiles()
103
    {
104
        return $this->files;
105
    }
106
107
    /**
108
     * @param int $files
109
     *
110
     * @return Cache
111
     */
112
    public function setFiles($files)
113
    {
114
        $this->files = $files;
115
116
        return $this;
117
    }
118
119
    /**
120
     * @return string
121
     */
122
    public function getFreeSpace()
123
    {
124
        return $this->freeSpace;
125
    }
126
127
    /**
128
     * @param string $freeSpace
129
     *
130
     * @return Cache
131
     */
132
    public function setFreeSpace($freeSpace)
133
    {
134
        $this->freeSpace = $freeSpace;
135
136
        return $this;
137
    }
138
139
    /**
140
     * @return string
141
     */
142
    public function getName()
143
    {
144
        return $this->name;
145
    }
146
147
    /**
148
     * @param string $name
149
     *
150
     * @return Cache
151
     */
152
    public function setName($name)
153
    {
154
        $this->name = $name;
155
156
        return $this;
157
    }
158
159
    /**
160
     * @return string
161
     */
162
    public function getBackend()
163
    {
164
        return $this->backend;
165
    }
166
167
    /**
168
     * @param string $backend
169
     *
170
     * @return Cache
171
     */
172
    public function setBackend($backend)
173
    {
174
        $this->backend = $backend;
175
176
        return $this;
177
    }
178
}
179