1 | <?php |
||
5 | final class TestResult |
||
6 | { |
||
7 | /** |
||
8 | * @var string |
||
9 | */ |
||
10 | private $category; |
||
11 | |||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | private $subject; |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | private $message; |
||
|
|||
21 | |||
22 | /** |
||
23 | * @var State |
||
24 | */ |
||
25 | private $state = State::NOSTATE; |
||
26 | |||
27 | /** |
||
28 | * @param string $category |
||
29 | * @param string $subject |
||
30 | */ |
||
31 | public function __construct($category = 'Unknown category', $subject = 'Unknown subject') |
||
32 | { |
||
33 | $this->category = $category; |
||
34 | $this->subject = $subject; |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * @param State $state |
||
39 | * |
||
40 | * @return void |
||
41 | */ |
||
42 | public function setState($state = State::NOSTATE) |
||
47 | |||
48 | /** |
||
49 | * @return State |
||
50 | */ |
||
51 | public function getState() |
||
56 | } |
||
57 |
This check marks private properties in classes that are never used. Those properties can be removed.