Completed
Push — master ( d38bb3...5cc041 )
by Thijs
07:56 queued 06:53
created

WorkItem::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 13

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 7
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 13
ccs 7
cts 7
cp 1
rs 9.8333
c 0
b 0
f 0
cc 1
nc 1
nop 5
crap 1
1
<?php
2
3
namespace TestMonitor\DevOps\Resources;
4
5
class WorkItem extends Resource
6
{
7
    /**
8
     * The id of the work item.
9
     *
10
     * @var string
11
     */
12
    public $id;
13
14
    /**
15
     * The title of the work item.
16
     *
17
     * @var string
18
     */
19
    public $title;
20
21
    /**
22
     * The description for the work item.
23
     *
24
     * @var string
25
     */
26
    public $description;
27
28
    /**
29
     * The type of the work item.
30
     *
31
     * @var string
32
     */
33
    public $workItemType;
34
35
    /**
36
     * The repro steps for the work item.
37
     *
38
     * @var string
39
     */
40
    public $stepsToReproduce;
41
42
    /**
43
     * Create a new resource instance.
44
     *
45
     * @param string $title
46
     * @param string $description
47
     * @param string $workItemType
48
     * @param string $stepsToReproduce
49
     * @param string|null $id
50
     */
51 3
    public function __construct(
52
        string $title,
53
        string $description,
54
        string $workItemType,
55
        string $stepsToReproduce,
56
        ?string $id = null
57
    ) {
58 3
        $this->id = $id;
59 3
        $this->title = $title;
60 3
        $this->description = $description;
61 3
        $this->workItemType = $workItemType;
62 3
        $this->stepsToReproduce = $stepsToReproduce;
63 3
    }
64
}
65