Completed
Push — master ( ea324c...2e8bb7 )
by Andrey
01:33
created

VideoAlbumController   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 22
c 0
b 0
f 0
rs 10

2 Methods

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