QuantitativeValueDistribution::url()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 4
Ratio 100 %

Importance

Changes 0
Metric Value
dl 4
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace Spatie\SchemaOrg;
4
5
use \Spatie\SchemaOrg\Contracts\QuantitativeValueDistributionContract;
6
use \Spatie\SchemaOrg\Contracts\IntangibleContract;
7
use \Spatie\SchemaOrg\Contracts\StructuredValueContract;
8
use \Spatie\SchemaOrg\Contracts\ThingContract;
9
10
/**
11
 * A statistical distribution of values.
12
 *
13
 * @see http://schema.org/QuantitativeValueDistribution
14
 *
15
 */
16 View Code Duplication
class QuantitativeValueDistribution extends BaseType implements QuantitativeValueDistributionContract, IntangibleContract, StructuredValueContract, ThingContract
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
17
{
18
    /**
19
     * An additional type for the item, typically used for adding more specific
20
     * types from external vocabularies in microdata syntax. This is a
21
     * relationship between something and a class that the thing is in. In RDFa
22
     * syntax, it is better to use the native RDFa syntax - the 'typeof'
23
     * attribute - for multiple types. Schema.org tools may have only weaker
24
     * understanding of extra types, in particular those defined externally.
25
     *
26
     * @param string|string[] $additionalType
27
     *
28
     * @return static
29
     *
30
     * @see http://schema.org/additionalType
31
     */
32
    public function additionalType($additionalType)
33
    {
34
        return $this->setProperty('additionalType', $additionalType);
35
    }
36
37
    /**
38
     * An alias for the item.
39
     *
40
     * @param string|string[] $alternateName
41
     *
42
     * @return static
43
     *
44
     * @see http://schema.org/alternateName
45
     */
46
    public function alternateName($alternateName)
47
    {
48
        return $this->setProperty('alternateName', $alternateName);
49
    }
50
51
    /**
52
     * A description of the item.
53
     *
54
     * @param string|string[] $description
55
     *
56
     * @return static
57
     *
58
     * @see http://schema.org/description
59
     */
60
    public function description($description)
61
    {
62
        return $this->setProperty('description', $description);
63
    }
64
65
    /**
66
     * A sub property of description. A short description of the item used to
67
     * disambiguate from other, similar items. Information from other properties
68
     * (in particular, name) may be necessary for the description to be useful
69
     * for disambiguation.
70
     *
71
     * @param string|string[] $disambiguatingDescription
72
     *
73
     * @return static
74
     *
75
     * @see http://schema.org/disambiguatingDescription
76
     */
77
    public function disambiguatingDescription($disambiguatingDescription)
78
    {
79
        return $this->setProperty('disambiguatingDescription', $disambiguatingDescription);
80
    }
81
82
    /**
83
     * The identifier property represents any kind of identifier for any kind of
84
     * [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides
85
     * dedicated properties for representing many of these, either as textual
86
     * strings or as URL (URI) links. See [background
87
     * notes](/docs/datamodel.html#identifierBg) for more details.
88
     *
89
     * @param \Spatie\SchemaOrg\Contracts\PropertyValueContract|\Spatie\SchemaOrg\Contracts\PropertyValueContract[]|string|string[] $identifier
90
     *
91
     * @return static
92
     *
93
     * @see http://schema.org/identifier
94
     */
95
    public function identifier($identifier)
96
    {
97
        return $this->setProperty('identifier', $identifier);
98
    }
99
100
    /**
101
     * An image of the item. This can be a [[URL]] or a fully described
102
     * [[ImageObject]].
103
     *
104
     * @param \Spatie\SchemaOrg\Contracts\ImageObjectContract|\Spatie\SchemaOrg\Contracts\ImageObjectContract[]|string|string[] $image
105
     *
106
     * @return static
107
     *
108
     * @see http://schema.org/image
109
     */
110
    public function image($image)
111
    {
112
        return $this->setProperty('image', $image);
113
    }
114
115
    /**
116
     * Indicates a page (or other CreativeWork) for which this thing is the main
117
     * entity being described. See [background
118
     * notes](/docs/datamodel.html#mainEntityBackground) for details.
119
     *
120
     * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $mainEntityOfPage
121
     *
122
     * @return static
123
     *
124
     * @see http://schema.org/mainEntityOfPage
125
     */
126
    public function mainEntityOfPage($mainEntityOfPage)
127
    {
128
        return $this->setProperty('mainEntityOfPage', $mainEntityOfPage);
129
    }
130
131
    /**
132
     * The median value.
133
     *
134
     * @param float|float[]|int|int[] $median
135
     *
136
     * @return static
137
     *
138
     * @see http://schema.org/median
139
     */
140
    public function median($median)
141
    {
142
        return $this->setProperty('median', $median);
143
    }
144
145
    /**
146
     * The name of the item.
147
     *
148
     * @param string|string[] $name
149
     *
150
     * @return static
151
     *
152
     * @see http://schema.org/name
153
     */
154
    public function name($name)
155
    {
156
        return $this->setProperty('name', $name);
157
    }
158
159
    /**
160
     * The 10th percentile value.
161
     *
162
     * @param float|float[]|int|int[] $percentile10
163
     *
164
     * @return static
165
     *
166
     * @see http://schema.org/percentile10
167
     */
168
    public function percentile10($percentile10)
169
    {
170
        return $this->setProperty('percentile10', $percentile10);
171
    }
172
173
    /**
174
     * The 25th percentile value.
175
     *
176
     * @param float|float[]|int|int[] $percentile25
177
     *
178
     * @return static
179
     *
180
     * @see http://schema.org/percentile25
181
     */
182
    public function percentile25($percentile25)
183
    {
184
        return $this->setProperty('percentile25', $percentile25);
185
    }
186
187
    /**
188
     * The 75th percentile value.
189
     *
190
     * @param float|float[]|int|int[] $percentile75
191
     *
192
     * @return static
193
     *
194
     * @see http://schema.org/percentile75
195
     */
196
    public function percentile75($percentile75)
197
    {
198
        return $this->setProperty('percentile75', $percentile75);
199
    }
200
201
    /**
202
     * The 90th percentile value.
203
     *
204
     * @param float|float[]|int|int[] $percentile90
205
     *
206
     * @return static
207
     *
208
     * @see http://schema.org/percentile90
209
     */
210
    public function percentile90($percentile90)
211
    {
212
        return $this->setProperty('percentile90', $percentile90);
213
    }
214
215
    /**
216
     * Indicates a potential Action, which describes an idealized action in
217
     * which this thing would play an 'object' role.
218
     *
219
     * @param \Spatie\SchemaOrg\Contracts\ActionContract|\Spatie\SchemaOrg\Contracts\ActionContract[] $potentialAction
220
     *
221
     * @return static
222
     *
223
     * @see http://schema.org/potentialAction
224
     */
225
    public function potentialAction($potentialAction)
226
    {
227
        return $this->setProperty('potentialAction', $potentialAction);
228
    }
229
230
    /**
231
     * URL of a reference Web page that unambiguously indicates the item's
232
     * identity. E.g. the URL of the item's Wikipedia page, Wikidata entry, or
233
     * official website.
234
     *
235
     * @param string|string[] $sameAs
236
     *
237
     * @return static
238
     *
239
     * @see http://schema.org/sameAs
240
     */
241
    public function sameAs($sameAs)
242
    {
243
        return $this->setProperty('sameAs', $sameAs);
244
    }
245
246
    /**
247
     * A CreativeWork or Event about this Thing.
248
     *
249
     * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|\Spatie\SchemaOrg\Contracts\EventContract|\Spatie\SchemaOrg\Contracts\EventContract[] $subjectOf
250
     *
251
     * @return static
252
     *
253
     * @see http://schema.org/subjectOf
254
     */
255
    public function subjectOf($subjectOf)
256
    {
257
        return $this->setProperty('subjectOf', $subjectOf);
258
    }
259
260
    /**
261
     * URL of the item.
262
     *
263
     * @param string|string[] $url
264
     *
265
     * @return static
266
     *
267
     * @see http://schema.org/url
268
     */
269
    public function url($url)
270
    {
271
        return $this->setProperty('url', $url);
272
    }
273
274
}
275