| Total Complexity | 8 |
| Total Lines | 84 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 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 |
|
| 82 | } |
||
| 83 | |||
| 84 | /** |
||
| 85 | * @param string $comment |
||
| 86 | */ |
||
| 87 | 5 | public function setComment(string $comment): void |
|
| 90 | 5 | } |
|
| 91 | } |
||
| 92 |