Issue::getDescription()   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
cc 1
nc 1
nop 0
dl 0
loc 4
ccs 0
cts 2
cp 0
crap 2
rs 10
c 0
b 0
f 0
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