ButtonEnumerator::enumSizes()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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 string[] Returns the sizes enumeration.
26
     */
27
    public static function enumSizes(): array {
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 string[] Returns the types enumeration.
39
     */
40
    public static function enumTypes(): array {
41
        return [
42
            ButtonInterface::BUTTON_TYPE_DANGER,
43
            ButtonInterface::BUTTON_TYPE_DARK,
44
            ButtonInterface::BUTTON_TYPE_DEFAULT,
45
            ButtonInterface::BUTTON_TYPE_INFO,
46
            ButtonInterface::BUTTON_TYPE_LIGHT,
47
            ButtonInterface::BUTTON_TYPE_LINK,
48
            ButtonInterface::BUTTON_TYPE_PRIMARY,
49
            ButtonInterface::BUTTON_TYPE_SECONDARY,
50
            ButtonInterface::BUTTON_TYPE_SUCCESS,
51
            ButtonInterface::BUTTON_TYPE_WARNING,
52
        ];
53
    }
54
}
55