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

api-platform / core / 11182119487

04 Oct 2024 02:50PM UTC coverage: 7.837% (+0.4%) from 7.441%
11182119487

push

github

soyuka
Merge 4.0

0 of 266 new or added lines in 25 files covered. (0.0%)

9900 existing lines in 360 files now uncovered.

12939 of 165109 relevant lines covered (7.84%)

27.02 hits per line

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

84.21
/src/OpenApi/Options.php
1
<?php
2

3
/*
4
 * This file is part of the API Platform project.
5
 *
6
 * (c) Kévin Dunglas <dunglas@gmail.com>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11

12
declare(strict_types=1);
13

14
namespace ApiPlatform\OpenApi;
15

16
final class Options
17
{
18
    public function __construct(private readonly string $title, private readonly string $description = '', private readonly string $version = '', private readonly bool $oAuthEnabled = false, private readonly ?string $oAuthType = null, private readonly ?string $oAuthFlow = null, private readonly ?string $oAuthTokenUrl = null, private readonly ?string $oAuthAuthorizationUrl = null, private readonly ?string $oAuthRefreshUrl = null, private readonly array $oAuthScopes = [], private readonly array $apiKeys = [], private readonly ?string $contactName = null, private readonly ?string $contactUrl = null, private readonly ?string $contactEmail = null, private readonly ?string $termsOfService = null, private readonly ?string $licenseName = null, private readonly ?string $licenseUrl = null, private bool $overrideResponses = true)
19
    {
UNCOV
20
    }
2,211✔
21

22
    public function getTitle(): string
23
    {
UNCOV
24
        return $this->title;
60✔
25
    }
26

27
    public function getDescription(): string
28
    {
UNCOV
29
        return $this->description;
60✔
30
    }
31

32
    public function getVersion(): string
33
    {
UNCOV
34
        return $this->version;
60✔
35
    }
36

37
    public function getOAuthEnabled(): bool
38
    {
UNCOV
39
        return $this->oAuthEnabled;
75✔
40
    }
41

42
    public function getOAuthType(): ?string
43
    {
UNCOV
44
        return $this->oAuthType;
75✔
45
    }
46

47
    public function getOAuthFlow(): ?string
48
    {
UNCOV
49
        return $this->oAuthFlow;
75✔
50
    }
51

52
    public function getOAuthTokenUrl(): ?string
53
    {
UNCOV
54
        return $this->oAuthTokenUrl;
75✔
55
    }
56

57
    public function getOAuthAuthorizationUrl(): ?string
58
    {
UNCOV
59
        return $this->oAuthAuthorizationUrl;
75✔
60
    }
61

62
    public function getOAuthRefreshUrl(): ?string
63
    {
UNCOV
64
        return $this->oAuthRefreshUrl;
60✔
65
    }
66

67
    public function getOAuthScopes(): array
68
    {
UNCOV
69
        return $this->oAuthScopes;
75✔
70
    }
71

72
    public function getApiKeys(): array
73
    {
UNCOV
74
        return $this->apiKeys;
60✔
75
    }
76

77
    public function getContactName(): ?string
78
    {
79
        return $this->contactName;
×
80
    }
81

82
    public function getContactUrl(): ?string
83
    {
UNCOV
84
        return $this->contactUrl;
60✔
85
    }
86

87
    public function getContactEmail(): ?string
88
    {
89
        return $this->contactEmail;
×
90
    }
91

92
    public function getTermsOfService(): ?string
93
    {
UNCOV
94
        return $this->termsOfService;
60✔
95
    }
96

97
    public function getLicenseName(): ?string
98
    {
UNCOV
99
        return $this->licenseName;
60✔
100
    }
101

102
    public function getLicenseUrl(): ?string
103
    {
104
        return $this->licenseUrl;
×
105
    }
106

107
    public function getOverrideResponses(): bool
108
    {
UNCOV
109
        return $this->overrideResponses;
60✔
110
    }
111
}
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