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

api-platform / core / 10943429050

19 Sep 2024 02:48PM UTC coverage: 7.647% (-0.03%) from 7.675%
10943429050

push

github

web-flow
feat: api-platform/json-hal component (#6621)

* feat: add hal support for laravel

* feat: quick review

* fix: typo & cs-fixer

* fix: typo in composer.json

* fix: cs-fixer & phpstan

* fix: forgot about hal item normalizer, therefore there's no more createbook nor updatebook test as Hal is a readonly format

0 of 94 new or added lines in 2 files covered. (0.0%)

9082 existing lines in 291 files now uncovered.

12629 of 165144 relevant lines covered (7.65%)

22.89 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
    }
1,854✔
21

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

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

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

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

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

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

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

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

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

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

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

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