Completed
Push — master ( 500137...fb248f )
by Sebastian
03:50
created

MusicRelease::catalogNumber()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace Spatie\SchemaOrg;
4
5
/**
6
 * A MusicRelease is a specific release of a music album.
7
 *
8
 * @see http://schema.org/MusicRelease
9
 */
10
class MusicRelease extends MusicPlaylist
11
{
12
    /**
13
     * The catalog number for the release.
14
     *
15
     * @param string $catalogNumber
16
     *
17
     * @return static
18
     *
19
     * @see http://schema.org/catalogNumber
20
     */
21
    public function catalogNumber($catalogNumber)
22
    {
23
        return $this->setProperty('catalogNumber', $catalogNumber);
24
    }
25
26
    /**
27
     * The group the release is credited to if different than the byArtist. For
28
     * example, Red and Blue is credited to "Stefani Germanotta Band", but by
29
     * Lady Gaga.
30
     *
31
     * @param \Spatie\SchemaOrg\Organization $creditedTo
32
     *
33
     * @return static
34
     *
35
     * @see http://schema.org/creditedTo
36
     */
37
    public function creditedTo($creditedTo)
38
    {
39
        return $this->setProperty('creditedTo', $creditedTo);
40
    }
41
42
    /**
43
     * Format of this release (the type of recording media used, ie. compact
44
     * disc, digital media, LP, etc.).
45
     *
46
     * @param \Spatie\SchemaOrg\MusicReleaseFormatType $musicReleaseFormat
47
     *
48
     * @return static
49
     *
50
     * @see http://schema.org/musicReleaseFormat
51
     */
52
    public function musicReleaseFormat($musicReleaseFormat)
53
    {
54
        return $this->setProperty('musicReleaseFormat', $musicReleaseFormat);
55
    }
56
57
    /**
58
     * The label that issued the release.
59
     *
60
     * @param \Spatie\SchemaOrg\Organization $recordLabel
61
     *
62
     * @return static
63
     *
64
     * @see http://schema.org/recordLabel
65
     */
66
    public function recordLabel($recordLabel)
67
    {
68
        return $this->setProperty('recordLabel', $recordLabel);
69
    }
70
71
    /**
72
     * The album this is a release of.
73
     *
74
     * @param \Spatie\SchemaOrg\MusicAlbum $releaseOf
75
     *
76
     * @return static
77
     *
78
     * @see http://schema.org/releaseOf
79
     */
80
    public function releaseOf($releaseOf)
81
    {
82
        return $this->setProperty('releaseOf', $releaseOf);
83
    }
84
85
}
86