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

3
namespace Jira\Client\Operations;
4

5
use Jira\Client\Client;
6
use Jira\Client\Schema;
7

8
/** @phpstan-require-extends Client */
9
trait ProjectEmail
10
{
11
    /**
12
     * Returns the "project's sender email address"
13
     * 
14
     * **"Permissions" required:** *Browse projects* "project permission" for the project.
15
     * 
16
     * @link https://confluence.atlassian.com/x/dolKLg
17
     * @link https://confluence.atlassian.com/x/yodKLg
18
     * 
19
     * @param int $projectId The project ID.
20
     */
21
    public function getProjectEmail(
×
22
        int $projectId,
23
    ): Schema\ProjectEmailAddress {
24
        return $this->call(
×
25
            uri: '/rest/api/3/project/{projectId}/email',
×
26
            method: 'get',
×
27
            path: compact('projectId'),
×
28
            success: 200,
×
29
            schema: Schema\ProjectEmailAddress::class,
×
30
        );
×
31
    }
32

33
    /**
34
     * Sets the "project's sender email address"
35
     * 
36
     * If `emailAddress` is an empty string, the default email address is restored
37
     * 
38
     * **"Permissions" required:** *Administer Jira* "global permission" or *Administer Projects* "project permission."
39
     * 
40
     * @link https://confluence.atlassian.com/x/dolKLg
41
     * @link https://confluence.atlassian.com/x/x4dKLg
42
     * @link https://confluence.atlassian.com/x/yodKLg
43
     * 
44
     * @param int $projectId The project ID.
45
     */
46
    public function updateProjectEmail(
×
47
        Schema\ProjectEmailAddress $request,
48
        int $projectId,
49
    ): true {
50
        return $this->call(
×
51
            uri: '/rest/api/3/project/{projectId}/email',
×
52
            method: 'put',
×
53
            body: $request,
×
54
            path: compact('projectId'),
×
55
            success: 204,
×
56
            schema: true,
×
57
        );
×
58
    }
59
}
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