Skip to content

Commit 20645a6

Browse files
committed
coverage ignore for generated files
1 parent a615f91 commit 20645a6

27 files changed

+1152
-0
lines changed

src/JsonSchema.php

Lines changed: 136 additions & 0 deletions
Large diffs are not rendered by default.

src/SwaggerSchema/ApiKeySecurity.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,41 +55,57 @@ public static function setUpProperties($properties, JsonBasicSchema $ownerSchema
5555
/**
5656
* @param string $type
5757
* @return $this
58+
* @codeCoverageIgnoreStart
5859
*/
5960
public function setType($type)
6061
{
6162
$this->type = $type;
6263
return $this;
6364
}
65+
/**
66+
* @codeCoverageIgnoreEnd
67+
*/
6468

6569
/**
6670
* @param string $name
6771
* @return $this
72+
* @codeCoverageIgnoreStart
6873
*/
6974
public function setName($name)
7075
{
7176
$this->name = $name;
7277
return $this;
7378
}
79+
/**
80+
* @codeCoverageIgnoreEnd
81+
*/
7482

7583
/**
7684
* @param string $in
7785
* @return $this
86+
* @codeCoverageIgnoreStart
7887
*/
7988
public function setIn($in)
8089
{
8190
$this->in = $in;
8291
return $this;
8392
}
93+
/**
94+
* @codeCoverageIgnoreEnd
95+
*/
8496

8597
/**
8698
* @param string $description
8799
* @return $this
100+
* @codeCoverageIgnoreStart
88101
*/
89102
public function setDescription($description)
90103
{
91104
$this->description = $description;
92105
return $this;
93106
}
107+
/**
108+
* @codeCoverageIgnoreEnd
109+
*/
94110
}
95111

src/SwaggerSchema/BasicAuthenticationSecurity.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,21 +41,29 @@ public static function setUpProperties($properties, JsonBasicSchema $ownerSchema
4141
/**
4242
* @param string $type
4343
* @return $this
44+
* @codeCoverageIgnoreStart
4445
*/
4546
public function setType($type)
4647
{
4748
$this->type = $type;
4849
return $this;
4950
}
51+
/**
52+
* @codeCoverageIgnoreEnd
53+
*/
5054

5155
/**
5256
* @param string $description
5357
* @return $this
58+
* @codeCoverageIgnoreStart
5459
*/
5560
public function setDescription($description)
5661
{
5762
$this->description = $description;
5863
return $this;
5964
}
65+
/**
66+
* @codeCoverageIgnoreEnd
67+
*/
6068
}
6169

src/SwaggerSchema/BodyParameter.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,51 +60,71 @@ public static function setUpProperties($properties, JsonBasicSchema $ownerSchema
6060
/**
6161
* @param string $description A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed.
6262
* @return $this
63+
* @codeCoverageIgnoreStart
6364
*/
6465
public function setDescription($description)
6566
{
6667
$this->description = $description;
6768
return $this;
6869
}
70+
/**
71+
* @codeCoverageIgnoreEnd
72+
*/
6973

7074
/**
7175
* @param string $name The name of the parameter.
7276
* @return $this
77+
* @codeCoverageIgnoreStart
7378
*/
7479
public function setName($name)
7580
{
7681
$this->name = $name;
7782
return $this;
7883
}
84+
/**
85+
* @codeCoverageIgnoreEnd
86+
*/
7987

8088
/**
8189
* @param string $in Determines the location of the parameter.
8290
* @return $this
91+
* @codeCoverageIgnoreStart
8392
*/
8493
public function setIn($in)
8594
{
8695
$this->in = $in;
8796
return $this;
8897
}
98+
/**
99+
* @codeCoverageIgnoreEnd
100+
*/
89101

90102
/**
91103
* @param bool $required Determines whether or not this parameter is required or optional.
92104
* @return $this
105+
* @codeCoverageIgnoreStart
93106
*/
94107
public function setRequired($required)
95108
{
96109
$this->required = $required;
97110
return $this;
98111
}
112+
/**
113+
* @codeCoverageIgnoreEnd
114+
*/
99115

100116
/**
101117
* @param Schema $schema A deterministic version of a JSON Schema object.
102118
* @return $this
119+
* @codeCoverageIgnoreStart
103120
*/
104121
public function setSchema($schema)
105122
{
106123
$this->schema = $schema;
107124
return $this;
108125
}
126+
/**
127+
* @codeCoverageIgnoreEnd
128+
*/
109129
}
110130

src/SwaggerSchema/Contact.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,31 +45,43 @@ public static function setUpProperties($properties, JsonBasicSchema $ownerSchema
4545
/**
4646
* @param string $name The identifying name of the contact person/organization.
4747
* @return $this
48+
* @codeCoverageIgnoreStart
4849
*/
4950
public function setName($name)
5051
{
5152
$this->name = $name;
5253
return $this;
5354
}
55+
/**
56+
* @codeCoverageIgnoreEnd
57+
*/
5458

5559
/**
5660
* @param string $url The URL pointing to the contact information.
5761
* @return $this
62+
* @codeCoverageIgnoreStart
5863
*/
5964
public function setUrl($url)
6065
{
6166
$this->url = $url;
6267
return $this;
6368
}
69+
/**
70+
* @codeCoverageIgnoreEnd
71+
*/
6472

6573
/**
6674
* @param string $email The email address of the contact person/organization.
6775
* @return $this
76+
* @codeCoverageIgnoreStart
6877
*/
6978
public function setEmail($email)
7079
{
7180
$this->email = $email;
7281
return $this;
7382
}
83+
/**
84+
* @codeCoverageIgnoreEnd
85+
*/
7486
}
7587

src/SwaggerSchema/ExternalDocs.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,21 +40,29 @@ public static function setUpProperties($properties, JsonBasicSchema $ownerSchema
4040
/**
4141
* @param string $description
4242
* @return $this
43+
* @codeCoverageIgnoreStart
4344
*/
4445
public function setDescription($description)
4546
{
4647
$this->description = $description;
4748
return $this;
4849
}
50+
/**
51+
* @codeCoverageIgnoreEnd
52+
*/
4953

5054
/**
5155
* @param string $url
5256
* @return $this
57+
* @codeCoverageIgnoreStart
5358
*/
5459
public function setUrl($url)
5560
{
5661
$this->url = $url;
5762
return $this;
5863
}
64+
/**
65+
* @codeCoverageIgnoreEnd
66+
*/
5967
}
6068

src/SwaggerSchema/FileSchema.php

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,91 +72,127 @@ public static function setUpProperties($properties, JsonBasicSchema $ownerSchema
7272
/**
7373
* @param string $format
7474
* @return $this
75+
* @codeCoverageIgnoreStart
7576
*/
7677
public function setFormat($format)
7778
{
7879
$this->format = $format;
7980
return $this;
8081
}
82+
/**
83+
* @codeCoverageIgnoreEnd
84+
*/
8185

8286
/**
8387
* @param string $title
8488
* @return $this
89+
* @codeCoverageIgnoreStart
8590
*/
8691
public function setTitle($title)
8792
{
8893
$this->title = $title;
8994
return $this;
9095
}
96+
/**
97+
* @codeCoverageIgnoreEnd
98+
*/
9199

92100
/**
93101
* @param string $description
94102
* @return $this
103+
* @codeCoverageIgnoreStart
95104
*/
96105
public function setDescription($description)
97106
{
98107
$this->description = $description;
99108
return $this;
100109
}
110+
/**
111+
* @codeCoverageIgnoreEnd
112+
*/
101113

102114
/**
103115
* @param $default
104116
* @return $this
117+
* @codeCoverageIgnoreStart
105118
*/
106119
public function setDefault($default)
107120
{
108121
$this->default = $default;
109122
return $this;
110123
}
124+
/**
125+
* @codeCoverageIgnoreEnd
126+
*/
111127

112128
/**
113129
* @param string[]|array $required
114130
* @return $this
131+
* @codeCoverageIgnoreStart
115132
*/
116133
public function setRequired($required)
117134
{
118135
$this->required = $required;
119136
return $this;
120137
}
138+
/**
139+
* @codeCoverageIgnoreEnd
140+
*/
121141

122142
/**
123143
* @param string $type
124144
* @return $this
145+
* @codeCoverageIgnoreStart
125146
*/
126147
public function setType($type)
127148
{
128149
$this->type = $type;
129150
return $this;
130151
}
152+
/**
153+
* @codeCoverageIgnoreEnd
154+
*/
131155

132156
/**
133157
* @param bool $readOnly
134158
* @return $this
159+
* @codeCoverageIgnoreStart
135160
*/
136161
public function setReadOnly($readOnly)
137162
{
138163
$this->readOnly = $readOnly;
139164
return $this;
140165
}
166+
/**
167+
* @codeCoverageIgnoreEnd
168+
*/
141169

142170
/**
143171
* @param ExternalDocs $externalDocs information about external documentation
144172
* @return $this
173+
* @codeCoverageIgnoreStart
145174
*/
146175
public function setExternalDocs($externalDocs)
147176
{
148177
$this->externalDocs = $externalDocs;
149178
return $this;
150179
}
180+
/**
181+
* @codeCoverageIgnoreEnd
182+
*/
151183

152184
/**
153185
* @param $example
154186
* @return $this
187+
* @codeCoverageIgnoreStart
155188
*/
156189
public function setExample($example)
157190
{
158191
$this->example = $example;
159192
return $this;
160193
}
194+
/**
195+
* @codeCoverageIgnoreEnd
196+
*/
161197
}
162198

0 commit comments

Comments
 (0)