Completed
Push — master ( f50c1e...d915f1 )
by WEBEWEB
01:34
created

BootstrapBundle::getAssetsRelativeDirectory()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
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) 2018 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;
13
14
use Symfony\Component\HttpKernel\Bundle\Bundle;
15
use WBW\Bundle\CoreBundle\Provider\AssetsProviderInterface;
16
17
/**
18
 * Bootstrap bundle.
19
 *
20
 * @author webeweb <https://github.com/webeweb/>
21
 * @package WBW\Bundle\BootstrapBundle
22
 */
23
class BootstrapBundle extends Bundle implements AssetsProviderInterface {
24
25
    /**
26
     * Bootstrap "Danger".
27
     *
28
     * @var string
29
     */
30
    const BOOTSTRAP_DANGER = "danger";
31
32
    /**
33
     * Bootstrap "Default".
34
     *
35
     * @var string
36
     */
37
    const BOOTSTRAP_DEFAULT = "default";
38
39
    /**
40
     * Bootstrap "Info".
41
     *
42
     * @var string
43
     */
44
    const BOOTSTRAP_INFO = "info";
45
46
    /**
47
     * Bootstrap "Primary".
48
     *
49
     * @var string
50
     */
51
    const BOOTSTRAP_PRIMARY = "primary";
52
53
    /**
54
     * Bootstrap "Success".
55
     *
56
     * @var string
57
     */
58
    const BOOTSTRAP_SUCCESS = "success";
59
60
    /**
61
     * Bootstrap "Warning".
62
     *
63
     * @var string
64
     */
65
    const BOOTSTRAP_WARNING = "warning";
66
67
    /**
68
     * Get the Bootstrap constants.
69
     *
70
     * @return array Returns the Bootstrap constants.
71
     */
72
    public static function getBootstrapConstants() {
73
        return [
74
            self::BOOTSTRAP_DANGER,
75
            self::BOOTSTRAP_DEFAULT,
76
            self::BOOTSTRAP_INFO,
77
            self::BOOTSTRAP_PRIMARY,
78
            self::BOOTSTRAP_SUCCESS,
79
            self::BOOTSTRAP_WARNING,
80
        ];
81
    }
82
83
    /**
84
     * {@inheritdoc}
85
     */
86
    public function getAssetsRelativeDirectory() {
87
        return "/Resources/assets";
88
    }
89
90
}
91