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

api-platform / core / 15255731762

26 May 2025 01:55PM UTC coverage: 0.0% (-26.5%) from 26.526%
15255731762

Pull #7176

github

web-flow
Merge 66f6cf4d2 into 79edced67
Pull Request #7176: Merge 4.1

0 of 387 new or added lines in 28 files covered. (0.0%)

11394 existing lines in 372 files now uncovered.

0 of 51334 relevant lines covered (0.0%)

0.0 hits per line

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

0.0
/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
use ApiPlatform\OpenApi\Model\Tag;
17

18
final readonly class Options
19
{
20
    /**
21
     * @param Tag[]        $tags
22
     * @param class-string $errorResourceClass
23
     * @param class-string $validationErrorResourceClass
24
     */
25
    public function __construct(
26
        private string $title,
27
        private string $description = '',
28
        private string $version = '',
29
        private bool $oAuthEnabled = false,
30
        private ?string $oAuthType = null,
31
        private ?string $oAuthFlow = null,
32
        private ?string $oAuthTokenUrl = null,
33
        private ?string $oAuthAuthorizationUrl = null,
34
        private ?string $oAuthRefreshUrl = null,
35
        private array $oAuthScopes = [],
36
        private array $apiKeys = [],
37
        private ?string $contactName = null,
38
        private ?string $contactUrl = null,
39
        private ?string $contactEmail = null,
40
        private ?string $termsOfService = null,
41
        private ?string $licenseName = null,
42
        private ?string $licenseUrl = null,
43
        private bool $overrideResponses = true,
44
        private bool $persistAuthorization = false,
45
        private array $httpAuth = [],
46
        private array $tags = [],
47
        private ?string $errorResourceClass = null,
48
        private ?string $validationErrorResourceClass = null,
49
        private ?string $licenseIdentifier = null,
50
    ) {
UNCOV
51
    }
×
52

53
    public function getTitle(): string
54
    {
UNCOV
55
        return $this->title;
×
56
    }
57

58
    public function getDescription(): string
59
    {
UNCOV
60
        return $this->description;
×
61
    }
62

63
    public function getVersion(): string
64
    {
UNCOV
65
        return $this->version;
×
66
    }
67

68
    public function getOAuthEnabled(): bool
69
    {
UNCOV
70
        return $this->oAuthEnabled;
×
71
    }
72

73
    public function getOAuthType(): ?string
74
    {
UNCOV
75
        return $this->oAuthType;
×
76
    }
77

78
    public function getOAuthFlow(): ?string
79
    {
UNCOV
80
        return $this->oAuthFlow;
×
81
    }
82

83
    public function getOAuthTokenUrl(): ?string
84
    {
UNCOV
85
        return $this->oAuthTokenUrl;
×
86
    }
87

88
    public function getOAuthAuthorizationUrl(): ?string
89
    {
UNCOV
90
        return $this->oAuthAuthorizationUrl;
×
91
    }
92

93
    public function getOAuthRefreshUrl(): ?string
94
    {
UNCOV
95
        return $this->oAuthRefreshUrl;
×
96
    }
97

98
    public function getOAuthScopes(): array
99
    {
UNCOV
100
        return $this->oAuthScopes;
×
101
    }
102

103
    public function getApiKeys(): array
104
    {
UNCOV
105
        return $this->apiKeys;
×
106
    }
107

108
    public function getHttpAuth(): array
109
    {
UNCOV
110
        return $this->httpAuth;
×
111
    }
112

113
    public function getContactName(): ?string
114
    {
115
        return $this->contactName;
×
116
    }
117

118
    public function getContactUrl(): ?string
119
    {
UNCOV
120
        return $this->contactUrl;
×
121
    }
122

123
    public function getContactEmail(): ?string
124
    {
125
        return $this->contactEmail;
×
126
    }
127

128
    public function getTermsOfService(): ?string
129
    {
UNCOV
130
        return $this->termsOfService;
×
131
    }
132

133
    public function getLicenseName(): ?string
134
    {
UNCOV
135
        return $this->licenseName;
×
136
    }
137

138
    public function getLicenseUrl(): ?string
139
    {
140
        return $this->licenseUrl;
×
141
    }
142

143
    public function getOverrideResponses(): bool
144
    {
UNCOV
145
        return $this->overrideResponses;
×
146
    }
147

148
    public function hasPersistAuthorization(): bool
149
    {
UNCOV
150
        return $this->persistAuthorization;
×
151
    }
152

153
    /**
154
     * @return Tag[]
155
     */
156
    public function getTags(): array
157
    {
UNCOV
158
        return $this->tags;
×
159
    }
160

161
    /**
162
     * @return class-string|null
163
     */
164
    public function getErrorResourceClass(): ?string
165
    {
UNCOV
166
        return $this->errorResourceClass;
×
167
    }
168

169
    /**
170
     * @return class-string|null
171
     */
172
    public function getValidationErrorResourceClass(): ?string
173
    {
UNCOV
174
        return $this->validationErrorResourceClass;
×
175
    }
176

177
    public function getLicenseIdentifier(): ?string
178
    {
179
        return $this->licenseIdentifier;
×
180
    }
181
}
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

© 2025 Coveralls, Inc