WorkLogEntry::getIssueID()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
ccs 2
cts 2
cp 1
cc 1
nc 1
nop 0
crap 1
1
<?php
2
declare(strict_types=1);
3
4
namespace TogglJira\Entity;
5
6
class WorkLogEntry
7
{
8
    /**
9
     * @var string
10
     */
11
    private $comment;
12
13
    /**
14
     * @var string
15
     */
16
    private $issueID;
17
18
    /**
19
     * @var \DateTimeInterface
20
     */
21
    private $spentOn;
22
23
    /**
24
     * @var int
25
     */
26
    private $timeSpent;
27
28
    /**
29
     * @return string
30
     */
31 5
    public function getIssueID(): string
32
    {
33 5
        return $this->issueID;
34
    }
35
36
    /**
37
     * @param string $issueID
38
     */
39 5
    public function setIssueID(string $issueID): void
40
    {
41 5
        $this->issueID = $issueID;
42 5
    }
43
44
    /**
45
     * @return int
46
     */
47 5
    public function getTimeSpent(): int
48
    {
49 5
        return $this->timeSpent;
50
    }
51
52
    /**
53
     * @param int $timeSpent
54
     */
55 5
    public function setTimeSpent(int $timeSpent): void
56
    {
57 5
        $this->timeSpent = $timeSpent;
58 5
    }
59
60
    /**
61
     * @return \DateTimeInterface
62
     */
63 5
    public function getSpentOn(): \DateTimeInterface
64
    {
65 5
        return $this->spentOn;
66
    }
67
68
    /**
69
     * @param \DateTimeInterface $spentOn
70
     */
71 5
    public function setSpentOn(\DateTimeInterface $spentOn): void
72
    {
73 5
        $this->spentOn = $spentOn;
74 5
    }
75
76
    /**
77
     * @return string
78
     */
79 5
    public function getComment(): string
80
    {
81 5
        return $this->comment;
82
    }
83
84
    /**
85
     * @param string $comment
86
     */
87 5
    public function setComment(string $comment): void
88
    {
89 5
        $this->comment = $comment;
90 5
    }
91
}
92