Completed
Push — master ( f560d6...a27d66 )
by WEBEWEB
01:15
created

AlertEnumerator   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A enumTypes() 0 12 1
1
<?php
2
3
/*
4
 * This file is part of the bootstrap-bundle package.
5
 *
6
 * (c) 2019 WEBEWEB
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace WBW\Bundle\BootstrapBundle\Alert;
13
14
/**
15
 * Alert enumerator.
16
 *
17
 * @author webeweb <https://github.com/webeweb/>
18
 * @package WBW\Bundle\BootstrapBundle\Alert
19
 */
20
class AlertEnumerator {
21
22
    /**
23
     * Enumerates the types.
24
     *
25
     * @return string[] Returns the types enumeration.
26
     */
27
    public static function enumTypes() {
28
        return [
29
            AlertInterface::ALERT_TYPE_DANGER,
30
            AlertInterface::ALERT_TYPE_DARK,
31
            AlertInterface::ALERT_TYPE_INFO,
32
            AlertInterface::ALERT_TYPE_LIGHT,
33
            AlertInterface::ALERT_TYPE_PRIMARY,
34
            AlertInterface::ALERT_TYPE_SECONDARY,
35
            AlertInterface::ALERT_TYPE_SUCCESS,
36
            AlertInterface::ALERT_TYPE_WARNING,
37
        ];
38
    }
39
}
40