AudioAlbumController   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 20
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getAlbumType() 0 3 1
A getModelName() 0 3 1
1
<?php
2
3
namespace Itstructure\MFUploader\controllers\album;
4
5
use Itstructure\MFUploader\models\album\AudioAlbum;
6
7
/**
8
 * AudioAlbumController extends the base abstract AlbumController.
9
 *
10
 * @package Itstructure\MFUploader\controllers\album
11
 *
12
 * @author Andrey Girnik <[email protected]>
13
 */
14
class AudioAlbumController extends AlbumController
15
{
16
    /**
17
     * Returns the name of the AudioAlbum model.
18
     *
19
     * @return string
20
     */
21
    protected function getModelName():string
22
    {
23
        return AudioAlbum::class;
24
    }
25
26
    /**
27
     * Returns the type of audio album.
28
     *
29
     * @return string
30
     */
31
    protected function getAlbumType():string
32
    {
33
        return AudioAlbum::ALBUM_TYPE_AUDIO;
34
    }
35
}
36