EducationalAudience::image()   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\EducationalAudienceContract;
6
use \Spatie\SchemaOrg\Contracts\AudienceContract;
7
use \Spatie\SchemaOrg\Contracts\IntangibleContract;
8
use \Spatie\SchemaOrg\Contracts\ThingContract;
9
10
/**
11
 * An EducationalAudience.
12
 *
13
 * @see http://schema.org/EducationalAudience
14
 *
15
 */
16 View Code Duplication
class EducationalAudience extends BaseType implements EducationalAudienceContract, AudienceContract, 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...
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
     * The target group associated with a given audience (e.g. veterans, car
53
     * owners, musicians, etc.).
54
     *
55
     * @param string|string[] $audienceType
56
     *
57
     * @return static
58
     *
59
     * @see http://schema.org/audienceType
60
     */
61
    public function audienceType($audienceType)
62
    {
63
        return $this->setProperty('audienceType', $audienceType);
64
    }
65
66
    /**
67
     * A description of the item.
68
     *
69
     * @param string|string[] $description
70
     *
71
     * @return static
72
     *
73
     * @see http://schema.org/description
74
     */
75
    public function description($description)
76
    {
77
        return $this->setProperty('description', $description);
78
    }
79
80
    /**
81
     * A sub property of description. A short description of the item used to
82
     * disambiguate from other, similar items. Information from other properties
83
     * (in particular, name) may be necessary for the description to be useful
84
     * for disambiguation.
85
     *
86
     * @param string|string[] $disambiguatingDescription
87
     *
88
     * @return static
89
     *
90
     * @see http://schema.org/disambiguatingDescription
91
     */
92
    public function disambiguatingDescription($disambiguatingDescription)
93
    {
94
        return $this->setProperty('disambiguatingDescription', $disambiguatingDescription);
95
    }
96
97
    /**
98
     * An educationalRole of an EducationalAudience.
99
     *
100
     * @param string|string[] $educationalRole
101
     *
102
     * @return static
103
     *
104
     * @see http://schema.org/educationalRole
105
     */
106
    public function educationalRole($educationalRole)
107
    {
108
        return $this->setProperty('educationalRole', $educationalRole);
109
    }
110
111
    /**
112
     * The geographic area associated with the audience.
113
     *
114
     * @param \Spatie\SchemaOrg\Contracts\AdministrativeAreaContract|\Spatie\SchemaOrg\Contracts\AdministrativeAreaContract[] $geographicArea
115
     *
116
     * @return static
117
     *
118
     * @see http://schema.org/geographicArea
119
     */
120
    public function geographicArea($geographicArea)
121
    {
122
        return $this->setProperty('geographicArea', $geographicArea);
123
    }
124
125
    /**
126
     * The identifier property represents any kind of identifier for any kind of
127
     * [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides
128
     * dedicated properties for representing many of these, either as textual
129
     * strings or as URL (URI) links. See [background
130
     * notes](/docs/datamodel.html#identifierBg) for more details.
131
     *
132
     * @param \Spatie\SchemaOrg\Contracts\PropertyValueContract|\Spatie\SchemaOrg\Contracts\PropertyValueContract[]|string|string[] $identifier
133
     *
134
     * @return static
135
     *
136
     * @see http://schema.org/identifier
137
     */
138
    public function identifier($identifier)
139
    {
140
        return $this->setProperty('identifier', $identifier);
141
    }
142
143
    /**
144
     * An image of the item. This can be a [[URL]] or a fully described
145
     * [[ImageObject]].
146
     *
147
     * @param \Spatie\SchemaOrg\Contracts\ImageObjectContract|\Spatie\SchemaOrg\Contracts\ImageObjectContract[]|string|string[] $image
148
     *
149
     * @return static
150
     *
151
     * @see http://schema.org/image
152
     */
153
    public function image($image)
154
    {
155
        return $this->setProperty('image', $image);
156
    }
157
158
    /**
159
     * Indicates a page (or other CreativeWork) for which this thing is the main
160
     * entity being described. See [background
161
     * notes](/docs/datamodel.html#mainEntityBackground) for details.
162
     *
163
     * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $mainEntityOfPage
164
     *
165
     * @return static
166
     *
167
     * @see http://schema.org/mainEntityOfPage
168
     */
169
    public function mainEntityOfPage($mainEntityOfPage)
170
    {
171
        return $this->setProperty('mainEntityOfPage', $mainEntityOfPage);
172
    }
173
174
    /**
175
     * The name of the item.
176
     *
177
     * @param string|string[] $name
178
     *
179
     * @return static
180
     *
181
     * @see http://schema.org/name
182
     */
183
    public function name($name)
184
    {
185
        return $this->setProperty('name', $name);
186
    }
187
188
    /**
189
     * Indicates a potential Action, which describes an idealized action in
190
     * which this thing would play an 'object' role.
191
     *
192
     * @param \Spatie\SchemaOrg\Contracts\ActionContract|\Spatie\SchemaOrg\Contracts\ActionContract[] $potentialAction
193
     *
194
     * @return static
195
     *
196
     * @see http://schema.org/potentialAction
197
     */
198
    public function potentialAction($potentialAction)
199
    {
200
        return $this->setProperty('potentialAction', $potentialAction);
201
    }
202
203
    /**
204
     * URL of a reference Web page that unambiguously indicates the item's
205
     * identity. E.g. the URL of the item's Wikipedia page, Wikidata entry, or
206
     * official website.
207
     *
208
     * @param string|string[] $sameAs
209
     *
210
     * @return static
211
     *
212
     * @see http://schema.org/sameAs
213
     */
214
    public function sameAs($sameAs)
215
    {
216
        return $this->setProperty('sameAs', $sameAs);
217
    }
218
219
    /**
220
     * A CreativeWork or Event about this Thing.
221
     *
222
     * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|\Spatie\SchemaOrg\Contracts\EventContract|\Spatie\SchemaOrg\Contracts\EventContract[] $subjectOf
223
     *
224
     * @return static
225
     *
226
     * @see http://schema.org/subjectOf
227
     */
228
    public function subjectOf($subjectOf)
229
    {
230
        return $this->setProperty('subjectOf', $subjectOf);
231
    }
232
233
    /**
234
     * URL of the item.
235
     *
236
     * @param string|string[] $url
237
     *
238
     * @return static
239
     *
240
     * @see http://schema.org/url
241
     */
242
    public function url($url)
243
    {
244
        return $this->setProperty('url', $url);
245
    }
246
247
}
248