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

api-platform / core / 10884379752

16 Sep 2024 01:01PM UTC coverage: 7.281% (-0.4%) from 7.672%
10884379752

push

github

soyuka
Merge 3.4

0 of 100 new or added lines in 7 files covered. (0.0%)

5332 existing lines in 181 files now uncovered.

11994 of 164725 relevant lines covered (7.28%)

9.52 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
    }
709✔
21

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

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

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

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

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

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

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

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

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

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

72
    public function getApiKeys(): array
73
    {
UNCOV
74
        return $this->apiKeys;
14✔
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;
14✔
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;
14✔
95
    }
96

97
    public function getLicenseName(): ?string
98
    {
UNCOV
99
        return $this->licenseName;
14✔
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;
14✔
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