Trip::provider()   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\TripContract;
6
use \Spatie\SchemaOrg\Contracts\IntangibleContract;
7
use \Spatie\SchemaOrg\Contracts\ThingContract;
8
9
/**
10
 * A trip or journey. An itinerary of visits to one or more places.
11
 *
12
 * @see http://schema.org/Trip
13
 *
14
 */
15 View Code Duplication
class Trip extends BaseType implements TripContract, IntangibleContract, 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...
16
{
17
    /**
18
     * An additional type for the item, typically used for adding more specific
19
     * types from external vocabularies in microdata syntax. This is a
20
     * relationship between something and a class that the thing is in. In RDFa
21
     * syntax, it is better to use the native RDFa syntax - the 'typeof'
22
     * attribute - for multiple types. Schema.org tools may have only weaker
23
     * understanding of extra types, in particular those defined externally.
24
     *
25
     * @param string|string[] $additionalType
26
     *
27
     * @return static
28
     *
29
     * @see http://schema.org/additionalType
30
     */
31
    public function additionalType($additionalType)
32
    {
33
        return $this->setProperty('additionalType', $additionalType);
34
    }
35
36
    /**
37
     * An alias for the item.
38
     *
39
     * @param string|string[] $alternateName
40
     *
41
     * @return static
42
     *
43
     * @see http://schema.org/alternateName
44
     */
45
    public function alternateName($alternateName)
46
    {
47
        return $this->setProperty('alternateName', $alternateName);
48
    }
49
50
    /**
51
     * The expected arrival time.
52
     *
53
     * @param \DateTimeInterface|\DateTimeInterface[] $arrivalTime
54
     *
55
     * @return static
56
     *
57
     * @see http://schema.org/arrivalTime
58
     */
59
    public function arrivalTime($arrivalTime)
60
    {
61
        return $this->setProperty('arrivalTime', $arrivalTime);
62
    }
63
64
    /**
65
     * The expected departure time.
66
     *
67
     * @param \DateTimeInterface|\DateTimeInterface[] $departureTime
68
     *
69
     * @return static
70
     *
71
     * @see http://schema.org/departureTime
72
     */
73
    public function departureTime($departureTime)
74
    {
75
        return $this->setProperty('departureTime', $departureTime);
76
    }
77
78
    /**
79
     * A description of the item.
80
     *
81
     * @param string|string[] $description
82
     *
83
     * @return static
84
     *
85
     * @see http://schema.org/description
86
     */
87
    public function description($description)
88
    {
89
        return $this->setProperty('description', $description);
90
    }
91
92
    /**
93
     * A sub property of description. A short description of the item used to
94
     * disambiguate from other, similar items. Information from other properties
95
     * (in particular, name) may be necessary for the description to be useful
96
     * for disambiguation.
97
     *
98
     * @param string|string[] $disambiguatingDescription
99
     *
100
     * @return static
101
     *
102
     * @see http://schema.org/disambiguatingDescription
103
     */
104
    public function disambiguatingDescription($disambiguatingDescription)
105
    {
106
        return $this->setProperty('disambiguatingDescription', $disambiguatingDescription);
107
    }
108
109
    /**
110
     * The identifier property represents any kind of identifier for any kind of
111
     * [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides
112
     * dedicated properties for representing many of these, either as textual
113
     * strings or as URL (URI) links. See [background
114
     * notes](/docs/datamodel.html#identifierBg) for more details.
115
     *
116
     * @param \Spatie\SchemaOrg\Contracts\PropertyValueContract|\Spatie\SchemaOrg\Contracts\PropertyValueContract[]|string|string[] $identifier
117
     *
118
     * @return static
119
     *
120
     * @see http://schema.org/identifier
121
     */
122
    public function identifier($identifier)
123
    {
124
        return $this->setProperty('identifier', $identifier);
125
    }
126
127
    /**
128
     * An image of the item. This can be a [[URL]] or a fully described
129
     * [[ImageObject]].
130
     *
131
     * @param \Spatie\SchemaOrg\Contracts\ImageObjectContract|\Spatie\SchemaOrg\Contracts\ImageObjectContract[]|string|string[] $image
132
     *
133
     * @return static
134
     *
135
     * @see http://schema.org/image
136
     */
137
    public function image($image)
138
    {
139
        return $this->setProperty('image', $image);
140
    }
141
142
    /**
143
     * Indicates a page (or other CreativeWork) for which this thing is the main
144
     * entity being described. See [background
145
     * notes](/docs/datamodel.html#mainEntityBackground) for details.
146
     *
147
     * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $mainEntityOfPage
148
     *
149
     * @return static
150
     *
151
     * @see http://schema.org/mainEntityOfPage
152
     */
153
    public function mainEntityOfPage($mainEntityOfPage)
154
    {
155
        return $this->setProperty('mainEntityOfPage', $mainEntityOfPage);
156
    }
157
158
    /**
159
     * The name of the item.
160
     *
161
     * @param string|string[] $name
162
     *
163
     * @return static
164
     *
165
     * @see http://schema.org/name
166
     */
167
    public function name($name)
168
    {
169
        return $this->setProperty('name', $name);
170
    }
171
172
    /**
173
     * An offer to provide this item&#x2014;for example, an offer to sell a
174
     * product, rent the DVD of a movie, perform a service, or give away tickets
175
     * to an event. Use [[businessFunction]] to indicate the kind of transaction
176
     * offered, i.e. sell, lease, etc. This property can also be used to
177
     * describe a [[Demand]]. While this property is listed as expected on a
178
     * number of common types, it can be used in others. In that case, using a
179
     * second type, such as Product or a subtype of Product, can clarify the
180
     * nature of the offer.
181
     *
182
     * @param \Spatie\SchemaOrg\Contracts\DemandContract|\Spatie\SchemaOrg\Contracts\DemandContract[]|\Spatie\SchemaOrg\Contracts\OfferContract|\Spatie\SchemaOrg\Contracts\OfferContract[] $offers
183
     *
184
     * @return static
185
     *
186
     * @see http://schema.org/offers
187
     */
188
    public function offers($offers)
189
    {
190
        return $this->setProperty('offers', $offers);
191
    }
192
193
    /**
194
     * Indicates a potential Action, which describes an idealized action in
195
     * which this thing would play an 'object' role.
196
     *
197
     * @param \Spatie\SchemaOrg\Contracts\ActionContract|\Spatie\SchemaOrg\Contracts\ActionContract[] $potentialAction
198
     *
199
     * @return static
200
     *
201
     * @see http://schema.org/potentialAction
202
     */
203
    public function potentialAction($potentialAction)
204
    {
205
        return $this->setProperty('potentialAction', $potentialAction);
206
    }
207
208
    /**
209
     * The service provider, service operator, or service performer; the goods
210
     * producer. Another party (a seller) may offer those services or goods on
211
     * behalf of the provider. A provider may also serve as the seller.
212
     *
213
     * @param \Spatie\SchemaOrg\Contracts\OrganizationContract|\Spatie\SchemaOrg\Contracts\OrganizationContract[]|\Spatie\SchemaOrg\Contracts\PersonContract|\Spatie\SchemaOrg\Contracts\PersonContract[] $provider
214
     *
215
     * @return static
216
     *
217
     * @see http://schema.org/provider
218
     */
219
    public function provider($provider)
220
    {
221
        return $this->setProperty('provider', $provider);
222
    }
223
224
    /**
225
     * URL of a reference Web page that unambiguously indicates the item's
226
     * identity. E.g. the URL of the item's Wikipedia page, Wikidata entry, or
227
     * official website.
228
     *
229
     * @param string|string[] $sameAs
230
     *
231
     * @return static
232
     *
233
     * @see http://schema.org/sameAs
234
     */
235
    public function sameAs($sameAs)
236
    {
237
        return $this->setProperty('sameAs', $sameAs);
238
    }
239
240
    /**
241
     * A CreativeWork or Event about this Thing.
242
     *
243
     * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|\Spatie\SchemaOrg\Contracts\EventContract|\Spatie\SchemaOrg\Contracts\EventContract[] $subjectOf
244
     *
245
     * @return static
246
     *
247
     * @see http://schema.org/subjectOf
248
     */
249
    public function subjectOf($subjectOf)
250
    {
251
        return $this->setProperty('subjectOf', $subjectOf);
252
    }
253
254
    /**
255
     * URL of the item.
256
     *
257
     * @param string|string[] $url
258
     *
259
     * @return static
260
     *
261
     * @see http://schema.org/url
262
     */
263
    public function url($url)
264
    {
265
        return $this->setProperty('url', $url);
266
    }
267
268
}
269