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.

CoverFishPHPUnitFile   A
last analyzed

Complexity

Total Complexity 20

Size/Duplication

Total Lines 204
Duplicated Lines 0 %

Coupling/Cohesion

Components 2
Dependencies 1

Importance

Changes 0
Metric Value
wmc 20
lcom 2
cbo 1
dl 0
loc 204
rs 10
c 0
b 0
f 0

20 Methods

Rating   Name   Duplication   Size   Complexity  
A getClassCovers() 0 4 1
A addClassCover() 0 4 1
A removeClassCover() 0 4 1
A getTests() 0 4 1
A addTest() 0 4 1
A removeTest() 0 4 1
A clearTests() 0 4 1
A getCoversDefaultClass() 0 4 1
A setCoversDefaultClass() 0 4 1
A getUsedClasses() 0 4 1
A setUsedClasses() 0 4 1
A getParentClass() 0 4 1
A setParentClass() 0 4 1
A getFile() 0 4 1
A setFile() 0 4 1
A getClassNameSpace() 0 4 1
A setClassNameSpace() 0 4 1
A getClassName() 0 4 1
A setClassName() 0 4 1
A __construct() 0 4 1
1
<?php
2
3
namespace DF\PHPCoverFish\Common;
4
5
/**
6
 * Class CoverFishPHPUnitFile, 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
final class CoverFishPHPUnitFile
19
{
20
    /**
21
     * @var string
22
     */
23
    private $coversDefaultClass;
24
25
    /**
26
     * @var array
27
     */
28
    private $usedClasses;
29
30
    /**
31
     * @var string
32
     */
33
    private $parentClass;
34
35
    /**
36
     * @var string
37
     */
38
    private $file;
39
40
    /**
41
     * @var string
42
     */
43
    private $classNameSpace;
44
45
    /**
46
     * @var string
47
     */
48
    private $className;
49
50
    /**
51
     * @var ArrayCollection
52
     */
53
    private $tests;
54
55
    /**
56
     * collector for cover annotation used in unit test class file class phpdoc
57
     *
58
     * @var ArrayCollection
59
     */
60
    private $classCovers;
61
62
    /**
63
     * @return ArrayCollection
64
     */
65
    public function getClassCovers()
66
    {
67
        return $this->classCovers;
68
    }
69
70
    /**
71
     * @param string $cover
72
     */
73
    public function addClassCover($cover)
74
    {
75
        $this->classCovers->add($cover);
76
    }
77
78
    /**
79
     * @param string $cover
80
     */
81
    public function removeClassCover($cover)
82
    {
83
        $this->classCovers->removeElement($cover);
84
    }
85
86
    /**
87
     * @return ArrayCollection
88
     */
89
    public function getTests()
90
    {
91
        return $this->tests;
92
    }
93
94
    /**
95
     * @param CoverFishPHPUnitTest $test
96
     */
97
    public function addTest(CoverFishPHPUnitTest $test)
98
    {
99
        $this->tests->add($test);
100
    }
101
102
    /**
103
     * @param CoverFishPHPUnitTest $test
104
     */
105
    public function removeTest(CoverFishPHPUnitTest $test)
106
    {
107
        $this->tests->removeElement($test);
108
    }
109
110
    /**
111
     * remove all tests from testCollection
112
     */
113
    public function clearTests()
114
    {
115
        $this->tests->clear();
116
    }
117
118
    /**
119
     * @return string
120
     */
121
    public function getCoversDefaultClass()
122
    {
123
        return $this->coversDefaultClass;
124
    }
125
126
    /**
127
     * @param string $coversDefaultClass
128
     */
129
    public function setCoversDefaultClass($coversDefaultClass)
130
    {
131
        $this->coversDefaultClass = $coversDefaultClass;
132
    }
133
134
    /**
135
     * @return array
136
     */
137
    public function getUsedClasses()
138
    {
139
        return $this->usedClasses;
140
    }
141
142
    /**
143
     * @param array $usedClasses
144
     */
145
    public function setUsedClasses($usedClasses)
146
    {
147
        $this->usedClasses = $usedClasses;
148
    }
149
150
    /**
151
     * @return string
152
     */
153
    public function getParentClass()
154
    {
155
        return $this->parentClass;
156
    }
157
158
    /**
159
     * @param string $parentClass
160
     */
161
    public function setParentClass($parentClass)
162
    {
163
        $this->parentClass = $parentClass;
164
    }
165
166
    /**
167
     * @return string
168
     */
169
    public function getFile()
170
    {
171
        return $this->file;
172
    }
173
174
    /**
175
     * @param string $file
176
     */
177
    public function setFile($file)
178
    {
179
        $this->file = $file;
180
    }
181
182
    /**
183
     * @return string
184
     */
185
    public function getClassNameSpace()
186
    {
187
        return $this->classNameSpace;
188
    }
189
190
    /**
191
     * @param string $classNameSpace
192
     */
193
    public function setClassNameSpace($classNameSpace)
194
    {
195
        $this->classNameSpace = $classNameSpace;
196
    }
197
198
    /**
199
     * @return string
200
     */
201
    public function getClassName()
202
    {
203
        return $this->className;
204
    }
205
206
    /**
207
     * @param string $className
208
     */
209
    public function setClassName($className)
210
    {
211
        $this->className = $className;
212
    }
213
214
    /**
215
     * class constructor
216
     */
217
    public function __construct()
218
    {
219
        $this->tests = new ArrayCollection();
220
    }
221
}