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

FolderTypes   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A allTypes() 0 10 1
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