Passed
Push — main ( 3e3c1b...ba444f )
by Thierry
30:30 queued 20:17
created

Bootstrap3::getName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
/**
4
 * Bootstrap3.php
5
 *
6
 * Adapter for the Bootstrap 3 library.
7
 *
8
 * @package jaxon-dialogs
9
 * @author Thierry Feuzeu <[email protected]>
10
 * @copyright 2016 Thierry Feuzeu <[email protected]>
11
 * @license https://opensource.org/licenses/BSD-3-Clause BSD 3-Clause License
12
 * @link https://github.com/jaxon-php/jaxon-dialogs
13
 */
14
15
namespace Jaxon\Dialogs\Dialog\Library;
16
17
use Jaxon\Dialogs\Dialog\AbstractLibrary;
18
use Jaxon\App\Dialog\Library\AlertInterface;
19
use Jaxon\App\Dialog\Library\ConfirmInterface;
20
use Jaxon\App\Dialog\Library\ModalInterface;
21
22
class Bootstrap3 extends AbstractLibrary
23
    implements ModalInterface, AlertInterface, ConfirmInterface
24
{
25
    /**
26
     * @const The library name
27
     */
28
    const NAME = 'bootstrap3';
29
30
    /**
31
     * The css files
32
     *
33
     * @var array
34
     */
35
    protected $aCssFiles = ['css/bootstrap-dialog.min.css'];
36
37
    /**
38
     * The js files
39
     *
40
     * @var array
41
     */
42
    protected $aJsFiles = ['js/bootstrap-dialog.min.js'];
43
44
    /**
45
     * @inheritDoc
46
     */
47
    public function getName(): string
48
    {
49
        return self::NAME;
50
    }
51
52
    /**
53
     * @inheritDoc
54
     */
55
    public function getUri(): string
56
    {
57
        return 'https://cdn.jsdelivr.net/npm/[email protected]/dist';
58
    }
59
}
60