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