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

api-platform / core / 15133993414

20 May 2025 09:30AM UTC coverage: 26.313% (-1.2%) from 27.493%
15133993414

Pull #7161

github

web-flow
Merge e2c03d45f into 5459ba375
Pull Request #7161: fix(metadata): infer parameter string type from schema

0 of 2 new or added lines in 1 file covered. (0.0%)

11019 existing lines in 363 files now uncovered.

12898 of 49018 relevant lines covered (26.31%)

34.33 hits per line

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

27.27
/src/OpenApi/Model/SecurityScheme.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\Model;
15

16
final class SecurityScheme
17
{
18
    use ExtensionTrait;
19

20
    public function __construct(private ?string $type = null, private string $description = '', private ?string $name = null, private ?string $in = null, private ?string $scheme = null, private ?string $bearerFormat = null, private ?OAuthFlows $flows = null, private ?string $openIdConnectUrl = null)
21
    {
UNCOV
22
    }
22✔
23

24
    public function getType(): string
25
    {
UNCOV
26
        return $this->type;
22✔
27
    }
28

29
    public function getDescription(): string
30
    {
UNCOV
31
        return $this->description;
22✔
32
    }
33

34
    public function getName(): ?string
35
    {
UNCOV
36
        return $this->name;
22✔
37
    }
38

39
    public function getIn(): ?string
40
    {
UNCOV
41
        return $this->in;
22✔
42
    }
43

44
    public function getScheme(): ?string
45
    {
UNCOV
46
        return $this->scheme;
22✔
47
    }
48

49
    public function getBearerFormat(): ?string
50
    {
UNCOV
51
        return $this->bearerFormat;
22✔
52
    }
53

54
    public function getFlows(): ?OAuthFlows
55
    {
UNCOV
56
        return $this->flows;
22✔
57
    }
58

59
    public function getOpenIdConnectUrl(): ?string
60
    {
UNCOV
61
        return $this->openIdConnectUrl;
22✔
62
    }
63

64
    public function withType(string $type): self
65
    {
66
        $clone = clone $this;
×
67
        $clone->type = $type;
×
68

69
        return $clone;
×
70
    }
71

72
    public function withDescription(string $description): self
73
    {
74
        $clone = clone $this;
×
75
        $clone->description = $description;
×
76

77
        return $clone;
×
78
    }
79

80
    public function withName(string $name): self
81
    {
82
        $clone = clone $this;
×
83
        $clone->name = $name;
×
84

85
        return $clone;
×
86
    }
87

88
    public function withIn(string $in): self
89
    {
90
        $clone = clone $this;
×
91
        $clone->in = $in;
×
92

93
        return $clone;
×
94
    }
95

96
    public function withScheme(string $scheme): self
97
    {
98
        $clone = clone $this;
×
99
        $clone->scheme = $scheme;
×
100

101
        return $clone;
×
102
    }
103

104
    public function withBearerFormat(string $bearerFormat): self
105
    {
106
        $clone = clone $this;
×
107
        $clone->bearerFormat = $bearerFormat;
×
108

109
        return $clone;
×
110
    }
111

112
    public function withFlows(OAuthFlows $flows): self
113
    {
114
        $clone = clone $this;
×
115
        $clone->flows = $flows;
×
116

117
        return $clone;
×
118
    }
119

120
    public function withOpenIdConnectUrl(string $openIdConnectUrl): self
121
    {
122
        $clone = clone $this;
×
123
        $clone->openIdConnectUrl = $openIdConnectUrl;
×
124

125
        return $clone;
×
126
    }
127
}
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