Total Complexity | 6 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
5 | class Music extends Category |
||
6 | { |
||
7 | const FORMAT_CD = 'CD'; |
||
8 | const FORMAT_CASSETTE = 'Cassette'; |
||
9 | const FORMAT_LP = 'LP'; |
||
10 | const FORMAT_DVD = 'DVD'; |
||
11 | const FORMAT_DOWNLOADABLE = 'Downloadable'; |
||
12 | const FORMAT_STREAMING = 'Streaming'; |
||
13 | |||
14 | protected $requiredAttributes = [ |
||
15 | 'Format' |
||
16 | ]; |
||
17 | |||
18 | public function format(string $format) |
||
22 | } |
||
23 | |||
24 | public function artist(string $artist) |
||
25 | { |
||
26 | $this->attributes['Artist'] = $artist; |
||
27 | return $this; |
||
28 | } |
||
29 | |||
30 | public function label(string $label) |
||
31 | { |
||
32 | $this->attributes['Label'] = $label; |
||
33 | return $this; |
||
34 | } |
||
35 | |||
36 | public function releaseDate($year, int $month, int $day) |
||
47 | } |
||
48 | } |