• 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/ProjectFeatures.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 ProjectFeatures
10
{
11
    /**
12
     * Returns the list of features for a project.
13
     * 
14
     * @param string $projectIdOrKey The ID or (case-sensitive) key of the project.
15
     */
16
    public function getFeaturesForProject(
×
17
        string $projectIdOrKey,
18
    ): Schema\ContainerForProjectFeatures {
19
        return $this->call(
×
20
            uri: '/rest/api/3/project/{projectIdOrKey}/features',
×
21
            method: 'get',
×
22
            path: compact('projectIdOrKey'),
×
23
            success: 200,
×
24
            schema: Schema\ContainerForProjectFeatures::class,
×
25
        );
×
26
    }
27

28
    /**
29
     * Sets the state of a project feature.
30
     * 
31
     * @param string $projectIdOrKey The ID or (case-sensitive) key of the project.
32
     * @param string $featureKey The key of the feature.
33
     */
34
    public function toggleFeatureForProject(
×
35
        Schema\ProjectFeatureState $request,
36
        string $projectIdOrKey,
37
        string $featureKey,
38
    ): Schema\ContainerForProjectFeatures {
39
        return $this->call(
×
40
            uri: '/rest/api/3/project/{projectIdOrKey}/features/{featureKey}',
×
41
            method: 'put',
×
42
            body: $request,
×
43
            path: compact('projectIdOrKey', 'featureKey'),
×
44
            success: 200,
×
45
            schema: Schema\ContainerForProjectFeatures::class,
×
46
        );
×
47
    }
48
}
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