Skip to content

Commit 7571178

Browse files
committed
Add missing typehints
1 parent 80b10ae commit 7571178

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Contracts/Task.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ final class Task
2121
/**
2222
* @param non-negative-int $taskUid
2323
* @param non-empty-string|null $indexUid
24+
* @param non-empty-string|null $duration
2425
*/
2526
public function __construct(
2627
private readonly int $taskUid,
@@ -79,6 +80,9 @@ public function getFinishedAt(): ?\DateTimeImmutable
7980
return $this->finishedAt;
8081
}
8182

83+
/**
84+
* @return non-empty-string|null
85+
*/
8286
public function getDuration(): ?string
8387
{
8488
return $this->duration;

0 commit comments

Comments
 (0)