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.

CoverFishPHPUnitTest   A
last analyzed

Complexity

Total Complexity 29

Size/Duplication

Total Lines 299
Duplicated Lines 0 %

Coupling/Cohesion

Components 2
Dependencies 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 29
lcom 2
cbo 1
dl 0
loc 299
rs 10
c 1
b 0
f 1

29 Methods

Rating   Name   Duplication   Size   Complexity  
A getDocBlock() 0 4 1
A setDocBlock() 0 4 1
A getName() 0 4 1
A setName() 0 4 1
A getVisibility() 0 4 1
A setVisibility() 0 4 1
A getSignature() 0 4 1
A setSignature() 0 4 1
A getLine() 0 4 1
A setLine() 0 4 1
A getLoc() 0 4 1
A setLoc() 0 4 1
A getCoverMappings() 0 4 1
A addCoverMapping() 0 4 1
A removeCoverMapping() 0 4 1
A clearCoverMappings() 0 4 1
A getCoverAnnotations() 0 4 1
A addCoverAnnotation() 0 4 1
A removeCoverAnnotation() 0 4 1
A clearCoverAnnotation() 0 4 1
A getFile() 0 4 1
A setFile() 0 4 1
A getFileAndPath() 0 4 1
A setFileAndPath() 0 4 1
A isFromClass() 0 4 1
A setFromClass() 0 4 1
A isFromMethod() 0 4 1
A setFromMethod() 0 4 1
A __construct() 0 5 1
1
<?php
2
3
namespace DF\PHPCoverFish\Common;
4
5
/**
6
 * Class CoverFishPHPUnitTest, wrapper for all phpUnit testClass files
7
 *
8
 * @package   DF\PHPCoverFish
9
 * @author    Patrick Paechnatz <[email protected]>
10
 * @copyright 2015 Patrick Paechnatz <[email protected]>
11
 * @license   http://www.opensource.org/licenses/MIT
12
 * @link      http://github.com/dunkelfrosch/phpcoverfish/tree
13
 * @since     class available since Release 0.9.0
14
 * @version   1.0.0
15
 *
16
 * @codeCoverageIgnore
17
 */
18
class CoverFishPHPUnitTest
19
{
20
    /**
21
     * @var bool
22
     */
23
    private $fromClass = false;
24
25
    /**
26
     * @var bool
27
     */
28
    private $fromMethod = false;
29
30
    /**
31
     * @var string
32
     */
33
    private $docBlock;
34
35
    /**
36
     * @var string
37
     */
38
    private $name;
39
40
    /**
41
     * @var string
42
     */
43
    private $visibility;
44
45
    /**
46
     * @var string
47
     */
48
    private $signature;
49
50
    /**
51
     * @var int
52
     */
53
    private $line;
54
55
    /**
56
     * @var int
57
     */
58
    private $loc;
59
60
    /**
61
     * @var string
62
     */
63
    private $file;
64
65
    /**
66
     * @var string
67
     */
68
    private $fileAndPath;
69
70
    /**
71
     * @var ArrayCollection
72
     */
73
    private $coverAnnotations;
74
75
    /**
76
     * @var ArrayCollection
77
     */
78
    private $coverMappings;
79
80
    /**
81
     * @return string
82
     */
83
    public function getDocBlock()
84
    {
85
        return $this->docBlock;
86
    }
87
88
    /**
89
     * @param string $docBlock
90
     */
91
    public function setDocBlock($docBlock)
92
    {
93
        $this->docBlock = $docBlock;
94
    }
95
96
    /**
97
     * @deprecated in version 0.9.3, signature will be used instead
98
     *
99
     * @return string
100
     */
101
    public function getName()
102
    {
103
        return $this->name;
104
    }
105
106
    /**
107
     * @deprecated in version 0.9.3, signature will be used instead
108
     *
109
     * @param string $name
110
     */
111
    public function setName($name)
112
    {
113
        $this->name = $name;
114
    }
115
116
    /**
117
     * @return string
118
     */
119
    public function getVisibility()
120
    {
121
        return $this->visibility;
122
    }
123
124
    /**
125
     * @param string $visibility
126
     */
127
    public function setVisibility($visibility)
128
    {
129
        $this->visibility = $visibility;
130
    }
131
132
    /**
133
     * @return string
134
     */
135
    public function getSignature()
136
    {
137
        return $this->signature;
138
    }
139
140
    /**
141
     * @param string $signature
142
     */
143
    public function setSignature($signature)
144
    {
145
        $this->signature = $signature;
146
    }
147
148
    /**
149
     * @return int
150
     */
151
    public function getLine()
152
    {
153
        return $this->line;
154
    }
155
156
    /**
157
     * @param int $line
158
     */
159
    public function setLine($line)
160
    {
161
        $this->line = $line;
162
    }
163
164
    /**
165
     * @return int
166
     */
167
    public function getLoc()
168
    {
169
        return $this->loc;
170
    }
171
172
    /**
173
     * @param int $loc
174
     */
175
    public function setLoc($loc)
176
    {
177
        $this->loc = $loc;
178
    }
179
180
    /**
181
     * @return ArrayCollection
182
     */
183
    public function getCoverMappings()
184
    {
185
        return $this->coverMappings;
186
    }
187
188
    /**
189
     * @param CoverFishMapping $coverMapping
190
     */
191
    public function addCoverMapping(CoverFishMapping $coverMapping)
192
    {
193
        $this->coverMappings->add($coverMapping);
194
    }
195
196
    /**
197
     * @param CoverFishMapping $coverMapping
198
     */
199
    public function removeCoverMapping(CoverFishMapping $coverMapping)
200
    {
201
        $this->coverMappings->removeElement($coverMapping);
202
    }
203
204
    /*
205
     * clear all defined coverMappings
206
     */
207
    public function clearCoverMappings()
208
    {
209
        $this->coverMappings->clear();
210
    }
211
212
    /**
213
     * @return ArrayCollection
214
     */
215
    public function getCoverAnnotations()
216
    {
217
        return $this->coverAnnotations;
218
    }
219
220
    /**
221
     * @param string $annotation
222
     */
223
    public function addCoverAnnotation($annotation)
224
    {
225
        $this->coverAnnotations->add($annotation);
226
    }
227
228
    /**
229
     * @param string $annotation
230
     */
231
    public function removeCoverAnnotation($annotation)
232
    {
233
        $this->coverAnnotations->removeElement($annotation);
234
    }
235
236
    /*
237
     * clear all defined annotations
238
     */
239
    public function clearCoverAnnotation()
240
    {
241
        $this->coverAnnotations->clear();
242
    }
243
244
    /**
245
     * @return string
246
     */
247
    public function getFile()
248
    {
249
        return $this->file;
250
    }
251
252
    /**
253
     * @param string $file
254
     */
255
    public function setFile($file)
256
    {
257
        $this->file = $file;
258
    }
259
260
    /**
261
     * @return string
262
     */
263
    public function getFileAndPath()
264
    {
265
        return $this->fileAndPath;
266
    }
267
268
    /**
269
     * @param string $fileAndPath
270
     */
271
    public function setFileAndPath($fileAndPath)
272
    {
273
        $this->fileAndPath = $fileAndPath;
274
    }
275
276
    /**
277
     * @return boolean
278
     */
279
    public function isFromClass()
280
    {
281
        return $this->fromClass;
282
    }
283
284
    /**
285
     * @param boolean $fromClass
286
     */
287
    public function setFromClass($fromClass)
288
    {
289
        $this->fromClass = $fromClass;
290
    }
291
292
    /**
293
     * @return boolean
294
     */
295
    public function isFromMethod()
296
    {
297
        return $this->fromMethod;
298
    }
299
300
    /**
301
     * @param boolean $fromMethod
302
     */
303
    public function setFromMethod($fromMethod)
304
    {
305
        $this->fromMethod = $fromMethod;
306
    }
307
308
    /**
309
     * class constructor
310
     */
311
    public function __construct()
312
    {
313
        $this->coverMappings = new ArrayCollection();
314
        $this->coverAnnotations = new ArrayCollection();
315
    }
316
}