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

3
namespace Jira\Client\Schema;
4

5
use Jira\Client\Dto;
6

7
/** Details about a project component. */
8
final readonly class ProjectComponent extends Dto
9
{
10
    public function __construct(
×
11
        /**
12
         * Compass component's ID.
13
         * Can't be updated.
14
         * Not required for creating a Project Component.
15
         */
16
        public ?string $ari = null,
17

18
        /**
19
         * The details of the user associated with `assigneeType`, if any.
20
         * See `realAssignee` for details of the user assigned to issues created with this component.
21
         */
22
        public ?User $assignee = null,
23

24
        /**
25
         * The nominal user type used to determine the assignee for issues created with this component.
26
         * See `realAssigneeType` for details on how the type of the user, and hence the user, assigned to issues is determined.
27
         * Can take the following values:
28
         * 
29
         *  - `PROJECT_LEAD` the assignee to any issues created with this component is nominally the lead for the project the component is in
30
         *  - `COMPONENT_LEAD` the assignee to any issues created with this component is nominally the lead for the component
31
         *  - `UNASSIGNED` an assignee is not set for issues created with this component
32
         *  - `PROJECT_DEFAULT` the assignee to any issues created with this component is nominally the default assignee for the project that the component is in
33
         * 
34
         * Default value: `PROJECT_DEFAULT`.
35
         *  
36
         * Optional when creating or updating a component.
37
         * 
38
         * @var 'PROJECT_DEFAULT'|'COMPONENT_LEAD'|'PROJECT_LEAD'|'UNASSIGNED'|null
39
         */
40
        public ?string $assigneeType = null,
41

42
        /**
43
         * The description for the component.
44
         * Optional when creating or updating a component.
45
         */
46
        public ?string $description = null,
47

48
        /** The unique identifier for the component. */
49
        public ?string $id = null,
50

51
        /**
52
         * Whether a user is associated with `assigneeType`.
53
         * For example, if the `assigneeType` is set to `COMPONENT_LEAD` but the component lead is not set, then `false` is returned.
54
         */
55
        public ?bool $isAssigneeTypeValid = null,
56

57
        /** The user details for the component's lead user. */
58
        public ?User $lead = null,
59

60
        /**
61
         * The accountId of the component's lead user.
62
         * The accountId uniquely identifies the user across all Atlassian products.
63
         * For example, *5b10ac8d82e05b22cc7d4ef5*.
64
         */
65
        public ?string $leadAccountId = null,
66

67
        /**
68
         * This property is no longer available and will be removed from the documentation soon.
69
         * See the "deprecation notice" for details.
70
         * 
71
         * @link https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/
72
         */
73
        public ?string $leadUserName = null,
74

75
        /**
76
         * Compass component's metadata.
77
         * Can't be updated.
78
         * Not required for creating a Project Component.
79
         * 
80
         * @var array<string,string>
81
         */
82
        public ?array $metadata = null,
83

84
        /**
85
         * The unique name for the component in the project.
86
         * Required when creating a component.
87
         * Optional when updating a component.
88
         * The maximum length is 255 characters.
89
         */
90
        public ?string $name = null,
91

92
        /**
93
         * The key of the project the component is assigned to.
94
         * Required when creating a component.
95
         * Can't be updated.
96
         */
97
        public ?string $project = null,
98

99
        /** The ID of the project the component is assigned to. */
100
        public ?int $projectId = null,
101

102
        /** The user assigned to issues created with this component, when `assigneeType` does not identify a valid assignee. */
103
        public ?User $realAssignee = null,
104

105
        /**
106
         * The type of the assignee that is assigned to issues created with this component, when an assignee cannot be set from the `assigneeType`.
107
         * For example, `assigneeType` is set to `COMPONENT_LEAD` but no component lead is set.
108
         * This property is set to one of the following values:
109
         * 
110
         *  - `PROJECT_LEAD` when `assigneeType` is `PROJECT_LEAD` and the project lead has permission to be assigned issues in the project that the component is in
111
         *  - `COMPONENT_LEAD` when `assignee`Type is `COMPONENT_LEAD` and the component lead has permission to be assigned issues in the project that the component is in
112
         *  - `UNASSIGNED` when `assigneeType` is `UNASSIGNED` and Jira is configured to allow unassigned issues
113
         *  - `PROJECT_DEFAULT` when none of the preceding cases are true.
114
         * 
115
         * @var 'PROJECT_DEFAULT'|'COMPONENT_LEAD'|'PROJECT_LEAD'|'UNASSIGNED'|null
116
         */
117
        public ?string $realAssigneeType = null,
118

119
        /** The URL of the component. */
120
        public ?string $self = null,
121
    ) {
122
    }
×
123
}
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