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

api-platform / core / 10027319583

21 Jul 2024 09:36AM UTC coverage: 7.847%. Remained the same
10027319583

push

github

web-flow
ci: fix naming of Windows Behat matrix line (#6489)

12688 of 161690 relevant lines covered (7.85%)

26.88 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
    {
20
    }
2,201✔
21

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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