• 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.59
/src/OpenApi/Model/Info.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 Info
17
{
18
    use ExtensionTrait;
19

20
    public function __construct(private string $title, private string $version, private string $description = '', private ?string $termsOfService = null, private ?Contact $contact = null, private ?License $license = null, private ?string $summary = null)
21
    {
UNCOV
22
    }
28✔
23

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

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

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

39
    public function getContact(): ?Contact
40
    {
UNCOV
41
        return $this->contact;
22✔
42
    }
43

44
    public function getLicense(): ?License
45
    {
UNCOV
46
        return $this->license;
22✔
47
    }
48

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

54
    public function getSummary(): ?string
55
    {
UNCOV
56
        return $this->summary;
22✔
57
    }
58

59
    public function withTitle(string $title): self
60
    {
61
        $info = clone $this;
×
62
        $info->title = $title;
×
63

64
        return $info;
×
65
    }
66

67
    public function withDescription(string $description): self
68
    {
69
        $clone = clone $this;
×
70
        $clone->description = $description;
×
71

72
        return $clone;
×
73
    }
74

75
    public function withTermsOfService(string $termsOfService): self
76
    {
77
        $clone = clone $this;
×
78
        $clone->termsOfService = $termsOfService;
×
79

80
        return $clone;
×
81
    }
82

83
    public function withContact(Contact $contact): self
84
    {
85
        $clone = clone $this;
×
86
        $clone->contact = $contact;
×
87

88
        return $clone;
×
89
    }
90

91
    public function withLicense(License $license): self
92
    {
93
        $clone = clone $this;
×
94
        $clone->license = $license;
×
95

96
        return $clone;
×
97
    }
98

99
    public function withVersion(string $version): self
100
    {
101
        $clone = clone $this;
×
102
        $clone->version = $version;
×
103

104
        return $clone;
×
105
    }
106

107
    public function withSummary(string $summary): self
108
    {
109
        $clone = clone $this;
×
110
        $clone->summary = $summary;
×
111

112
        return $clone;
×
113
    }
114
}
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