• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tylernathanreed / jira-client-php / 13634794100

03 Mar 2025 03:19PM UTC coverage: 2.067% (-0.1%) from 2.21%
13634794100

push

github

web-flow
~ Try coveralls action

140 of 6773 relevant lines covered (2.07%)

0.03 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/Schema/Worklog.php
1
<?php
2

3
namespace Jira\Client\Schema;
4

5
use DateTimeImmutable;
6
use Jira\Client\Dto;
7

8
/** Details of a worklog. */
9
final readonly class Worklog extends Dto
10
{
11
    public function __construct(
×
12
        /** Details of the user who created the worklog. */
13
        public ?UserDetails $author = null,
14

15
        /**
16
         * A comment about the worklog in "Atlassian Document Format".
17
         * Optional when creating or updating a worklog.
18
         * 
19
         * @link https://developer.atlassian.com/cloud/jira/platform/apis/document/structure/
20
         */
21
        public mixed $comment = null,
22

23
        /** The datetime on which the worklog was created. */
24
        public ?DateTimeImmutable $created = null,
25

26
        /** The ID of the worklog record. */
27
        public ?string $id = null,
28

29
        /** The ID of the issue this worklog is for. */
30
        public ?string $issueId = null,
31

32
        /**
33
         * Details of properties for the worklog.
34
         * Optional when creating or updating a worklog.
35
         * 
36
         * @var ?list<EntityProperty>
37
         */
38
        public ?array $properties = null,
39

40
        /** The URL of the worklog item. */
41
        public ?string $self = null,
42

43
        /**
44
         * The datetime on which the worklog effort was started.
45
         * Required when creating a worklog.
46
         * Optional when updating a worklog.
47
         */
48
        public ?DateTimeImmutable $started = null,
49

50
        /**
51
         * The time spent working on the issue as days (\#d), hours (\#h), or minutes (\#m or \#).
52
         * Required when creating a worklog if `timeSpentSeconds` isn't provided.
53
         * Optional when updating a worklog.
54
         * Cannot be provided if `timeSpentSecond` is provided.
55
         */
56
        public ?string $timeSpent = null,
57

58
        /**
59
         * The time in seconds spent working on the issue.
60
         * Required when creating a worklog if `timeSpent` isn't provided.
61
         * Optional when updating a worklog.
62
         * Cannot be provided if `timeSpent` is provided.
63
         */
64
        public ?int $timeSpentSeconds = null,
65

66
        /** Details of the user who last updated the worklog. */
67
        public ?UserDetails $updateAuthor = null,
68

69
        /** The datetime on which the worklog was last updated. */
70
        public ?DateTimeImmutable $updated = null,
71

72
        /**
73
         * Details about any restrictions in the visibility of the worklog.
74
         * Optional when creating or updating a worklog.
75
         */
76
        public ?Visibility $visibility = null,
77
    ) {
78
    }
×
79
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc