• 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/Comment.php
1
<?php
2

3
namespace Jira\Client\Schema;
4

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

8
/** A comment. */
9
final readonly class Comment extends Dto
10
{
11
    public function __construct(
×
12
        /** The ID of the user who created the comment. */
13
        public ?UserDetails $author = null,
14

15
        /**
16
         * The comment text in "Atlassian Document Format".
17
         * 
18
         * @link https://developer.atlassian.com/cloud/jira/platform/apis/document/structure/
19
         */
20
        public mixed $body = null,
21

22
        /** The date and time at which the comment was created. */
23
        public ?DateTimeImmutable $created = null,
24

25
        /** The ID of the comment. */
26
        public ?string $id = null,
27

28
        /**
29
         * Whether the comment was added from an email sent by a person who is not part of the issue.
30
         * See "Allow external emails to be added as comments on issues"for information on setting up this feature.
31
         * 
32
         * @link https://support.atlassian.com/jira-service-management-cloud/docs/allow-external-emails-to-be-added-as-comments-on-issues/
33
         */
34
        public ?bool $jsdAuthorCanSeeRequest = null,
35

36
        /**
37
         * Whether the comment is visible in Jira Service Desk.
38
         * Defaults to true when comments are created in the Jira Cloud Platform.
39
         * This includes when the site doesn't use Jira Service Desk or the project isn't a Jira Service Desk project and, therefore, there is no Jira Service Desk for the issue to be visible on.
40
         * To create a comment with its visibility in Jira Service Desk set to false, use the Jira Service Desk REST API "Create request comment" operation.
41
         * 
42
         * @link https://developer.atlassian.com/cloud/jira/service-desk/rest/#api-rest-servicedeskapi-request-issueIdOrKey-comment-post
43
         */
44
        public ?bool $jsdPublic = null,
45

46
        /**
47
         * A list of comment properties.
48
         * Optional on create and update.
49
         * 
50
         * @var ?list<EntityProperty>
51
         */
52
        public ?array $properties = null,
53

54
        /** The rendered version of the comment. */
55
        public ?string $renderedBody = null,
56

57
        /** The URL of the comment. */
58
        public ?string $self = null,
59

60
        /** The ID of the user who updated the comment last. */
61
        public ?UserDetails $updateAuthor = null,
62

63
        /** The date and time at which the comment was updated last. */
64
        public ?DateTimeImmutable $updated = null,
65

66
        /**
67
         * The group or role to which this comment is visible.
68
         * Optional on create and update.
69
         */
70
        public ?Visibility $visibility = null,
71
    ) {
72
    }
×
73
}
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