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

WorkItem   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 60
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 60
ccs 7
cts 7
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 13 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