Completed
Pull Request — 5.0 (#2124)
by
unknown
11:10
created

FolderTypes::allTypes()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 10
rs 9.9332
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Kunstmaan\MediaBundle\Folders;
4
5
/**
6
 * Class FolderTypes
7
 *
8
 * Enabled folder types.
9
 *
10
 * @package Kunstmaan\MediaBundle\Folders
11
 */
12
class FolderTypes
13
{
14
    const FILES = 'files';
15
    const IMAGE = 'image';
16
    const MEDIA = 'media';
17
    const SLIDESHOW = 'slideshow';
18
    const VIDEO = 'video';
19
20
    public static function allTypes()
21
    {
22
        return [
23
            self::MEDIA => self::MEDIA,
24
            self::IMAGE => self::IMAGE,
25
            self::FILES => self::FILES,
26
            self::SLIDESHOW => self::SLIDESHOW,
27
            self::VIDEO => self::VIDEO,
28
        ];
29
    }
30
}
31