Passed
Push — master ( c97f61...125742 )
by Jérémy
01:58
created

TaskRequest::assigneeId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace JDecool\Clockify\Api\Task;
6
7
class TaskRequest
8
{
9
    private $id;
10
    private $name;
11
    private $assigneeId;
12
    private $estimate;
13
    private $status;
14
15
    public function __construct(string $id, string $name, string $assigneeId, string $estimate, string $status)
16
    {
17
        $this->id = $id;
18
        $this->name = $name;
19
        $this->assigneeId = $assigneeId;
20
        $this->estimate = $estimate;
21
        $this->status = $status;
22
    }
23
24
    public function id(): string
25
    {
26
        return $this->id;
27
    }
28
29
    public function name(): string
30
    {
31
        return $this->name;
32
    }
33
34
    public function assigneeId(): string
35
    {
36
        return $this->assigneeId;
37
    }
38
39
    public function estimate(): string
40
    {
41
        return $this->estimate;
42
    }
43
44
    public function status(): string
45
    {
46
        return $this->status;
47
    }
48
49
    public function toArray(): array
50
    {
51
        return [
52
            'id' => $this->id,
53
            'name' => $this->name,
54
            'assigneeId' => $this->assigneeId,
55
            'estimate' => $this->estimate,
56
            'status' => $this->status,
57
        ];
58
    }
59
}
60