Issue   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 43
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 63.64%

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 43
ccs 7
cts 11
cp 0.6364
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getSubject() 0 4 1
A getDescription() 0 4 1
A getSolution() 0 4 1
1
<?php
2
3
namespace Freshcells\StateInspector\Issue;
4
5
class Issue implements IssueInterface
6
{
7
    private $subject;
8
    private $description;
9
    private $solution;
10
11
    /**
12
     * Issue constructor.
13
     * @param string $subject
14
     * @param string $description
15
     * @param string $solution
16
     */
17 2
    public function __construct(string $subject, string $description = '', string $solution = '')
18
    {
19 2
        $this->subject     = $subject;
20 2
        $this->description = $description;
21 2
        $this->solution    = $solution;
22 2
    }
23
24
    /**
25
     * @return string
26
     */
27 1
    public function getSubject(): string
28
    {
29 1
        return $this->subject;
30
    }
31
32
    /**
33
     * @return string
34
     */
35
    public function getDescription(): string
36
    {
37
        return $this->description;
38
    }
39
40
    /**
41
     * @return string
42
     */
43
    public function getSolution(): string
44
    {
45
        return $this->solution;
46
    }
47
}
48