Completed
Push — master ( 2c4f8d...8be794 )
by WEBEWEB
06:07
created

ButtonEnumerator   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A enumSizes() 0 7 1
A enumTypes() 0 10 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\Button;
13
14
/**
15
 * Button enumerator.
16
 *
17
 * @author webeweb <https://github.com/webeweb/>
18
 * @package WBW\Bundle\BootstrapBundle\Button
19
 */
20
class ButtonEnumerator {
21
22
    /**
23
     * Enumerates the sizes.
24
     *
25
     * @return array Returns the sizes enumeration.
26
     */
27
    public static function enumSizes() {
28
        return [
29
            ButtonInterface::BUTTON_SIZE_LG,
30
            ButtonInterface::BUTTON_SIZE_SM,
31
            ButtonInterface::BUTTON_SIZE_XS,
32
        ];
33
    }
34
35
    /**
36
     * Enumerates the types.
37
     *
38
     * @return array Returns the types enumeration.
39
     */
40
    public static function enumTypes() {
41
        return [
42
            ButtonInterface::BUTTON_TYPE_DANGER,
43
            ButtonInterface::BUTTON_TYPE_DEFAULT,
44
            ButtonInterface::BUTTON_TYPE_INFO,
45
            ButtonInterface::BUTTON_TYPE_PRIMARY,
46
            ButtonInterface::BUTTON_TYPE_SUCCESS,
47
            ButtonInterface::BUTTON_TYPE_WARNING,
48
        ];
49
    }
50
}
51