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

api-platform / core / 10739011304

06 Sep 2024 01:11PM UTC coverage: 7.159% (-0.5%) from 7.645%
10739011304

push

github

web-flow
 feat(laravel): eloquent filters (search, date, equals, or) (#6593)

* feat(laravel): Eloquent filters search date or

* feat(laravel): eloquent filters order range equals afterdate

* fix(laravel): order afterDate filters

* temp

* test(laravel): filter with eloquent

---------

Co-authored-by: Nathan <nathan@les-tilleuls.coop>

0 of 144 new or added lines in 16 files covered. (0.0%)

4792 existing lines in 155 files now uncovered.

11736 of 163930 relevant lines covered (7.16%)

22.8 hits per line

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

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

20
    public static array $methods = ['GET', 'PUT', 'POST', 'DELETE', 'OPTIONS', 'HEAD', 'PATCH', 'TRACE'];
21

22
    public function __construct(private ?string $ref = null, private ?string $summary = null, private ?string $description = null, private ?Operation $get = null, private ?Operation $put = null, private ?Operation $post = null, private ?Operation $delete = null, private ?Operation $options = null, private ?Operation $head = null, private ?Operation $patch = null, private ?Operation $trace = null, private ?array $servers = null, private ?array $parameters = null)
23
    {
UNCOV
24
    }
39✔
25

26
    public function getRef(): ?string
27
    {
UNCOV
28
        return $this->ref;
36✔
29
    }
30

31
    public function getSummary(): ?string
32
    {
UNCOV
33
        return $this->summary;
36✔
34
    }
35

36
    public function getDescription(): ?string
37
    {
UNCOV
38
        return $this->description;
36✔
39
    }
40

41
    public function getGet(): ?Operation
42
    {
UNCOV
43
        return $this->get;
36✔
44
    }
45

46
    public function getPut(): ?Operation
47
    {
UNCOV
48
        return $this->put;
36✔
49
    }
50

51
    public function getPost(): ?Operation
52
    {
UNCOV
53
        return $this->post;
36✔
54
    }
55

56
    public function getDelete(): ?Operation
57
    {
UNCOV
58
        return $this->delete;
36✔
59
    }
60

61
    public function getOptions(): ?Operation
62
    {
UNCOV
63
        return $this->options;
36✔
64
    }
65

66
    public function getHead(): ?Operation
67
    {
UNCOV
68
        return $this->head;
36✔
69
    }
70

71
    public function getPatch(): ?Operation
72
    {
UNCOV
73
        return $this->patch;
36✔
74
    }
75

76
    public function getTrace(): ?Operation
77
    {
UNCOV
78
        return $this->trace;
36✔
79
    }
80

81
    public function getServers(): ?array
82
    {
UNCOV
83
        return $this->servers;
36✔
84
    }
85

86
    public function getParameters(): ?array
87
    {
UNCOV
88
        return $this->parameters;
36✔
89
    }
90

91
    public function withRef(string $ref): self
92
    {
93
        $clone = clone $this;
×
94
        $clone->ref = $ref;
×
95

96
        return $clone;
×
97
    }
98

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

104
        return $clone;
×
105
    }
106

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

112
        return $clone;
×
113
    }
114

115
    public function withGet(?Operation $get): self
116
    {
UNCOV
117
        $clone = clone $this;
36✔
UNCOV
118
        $clone->get = $get;
36✔
119

UNCOV
120
        return $clone;
36✔
121
    }
122

123
    public function withPut(?Operation $put): self
124
    {
UNCOV
125
        $clone = clone $this;
36✔
UNCOV
126
        $clone->put = $put;
36✔
127

UNCOV
128
        return $clone;
36✔
129
    }
130

131
    public function withPost(?Operation $post): self
132
    {
UNCOV
133
        $clone = clone $this;
36✔
UNCOV
134
        $clone->post = $post;
36✔
135

UNCOV
136
        return $clone;
36✔
137
    }
138

139
    public function withDelete(?Operation $delete): self
140
    {
UNCOV
141
        $clone = clone $this;
36✔
UNCOV
142
        $clone->delete = $delete;
36✔
143

UNCOV
144
        return $clone;
36✔
145
    }
146

147
    public function withOptions(Operation $options): self
148
    {
149
        $clone = clone $this;
×
150
        $clone->options = $options;
×
151

152
        return $clone;
×
153
    }
154

155
    public function withHead(Operation $head): self
156
    {
157
        $clone = clone $this;
×
158
        $clone->head = $head;
×
159

160
        return $clone;
×
161
    }
162

163
    public function withPatch(?Operation $patch): self
164
    {
UNCOV
165
        $clone = clone $this;
36✔
UNCOV
166
        $clone->patch = $patch;
36✔
167

UNCOV
168
        return $clone;
36✔
169
    }
170

171
    public function withTrace(Operation $trace): self
172
    {
173
        $clone = clone $this;
×
174
        $clone->trace = $trace;
×
175

176
        return $clone;
×
177
    }
178

179
    public function withServers(?array $servers = null): self
180
    {
181
        $clone = clone $this;
×
182
        $clone->servers = $servers;
×
183

184
        return $clone;
×
185
    }
186

187
    public function withParameters(?array $parameters = null): self
188
    {
189
        $clone = clone $this;
×
190
        $clone->parameters = $parameters;
×
191

192
        return $clone;
×
193
    }
194
}
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

© 2024 Coveralls, Inc