TextAlbumController::getAlbumType()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace Itstructure\MFUploader\controllers\album;
4
5
use Itstructure\MFUploader\models\album\TextAlbum;
6
7
/**
8
 * TextAlbumController extends the base abstract AlbumController.
9
 *
10
 * @package Itstructure\MFUploader\controllers\album
11
 *
12
 * @author Andrey Girnik <[email protected]>
13
 */
14
class TextAlbumController extends AlbumController
15
{
16
    /**
17
     * Returns the name of the TextAlbum model.
18
     *
19
     * @return string
20
     */
21
    protected function getModelName():string
22
    {
23
        return TextAlbum::class;
24
    }
25
26
    /**
27
     * Returns the type of text album.
28
     *
29
     * @return string
30
     */
31
    protected function getAlbumType():string
32
    {
33
        return TextAlbum::ALBUM_TYPE_TEXT;
34
    }
35
}
36