Completed
Push — master ( fd0635...f2796c )
by Tom
06:08
created

AudioObject::caption()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
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
/**
6
 * An audio file.
7
 *
8
 * @see http://schema.org/AudioObject
9
 *
10
 * @mixin \Spatie\SchemaOrg\MediaObject
11
 */
12
class AudioObject extends BaseType
13
{
14
    /**
15
     * The caption for this object. For downloadable machine formats (closed
16
     * caption, subtitles etc.) use MediaObject and indicate the
17
     * [[encodingFormat]].
18
     *
19
     * @param MediaObject|MediaObject[]|string|string[] $caption
20
     *
21
     * @return static
22
     *
23
     * @see http://schema.org/caption
24
     */
25
    public function caption($caption)
26
    {
27
        return $this->setProperty('caption', $caption);
28
    }
29
30
    /**
31
     * If this MediaObject is an AudioObject or VideoObject, the transcript of
32
     * that object.
33
     *
34
     * @param string|string[] $transcript
35
     *
36
     * @return static
37
     *
38
     * @see http://schema.org/transcript
39
     */
40
    public function transcript($transcript)
41
    {
42
        return $this->setProperty('transcript', $transcript);
43
    }
44
45
}
46