CuteAlert   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 6
c 0
b 0
f 0
dl 0
loc 35
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 3 1
A getUri() 0 3 1
1
<?php
2
3
/**
4
 * CuteAlert.php
5
 *
6
 * Adapter for the CuteAlert library.
7
 *
8
 * @package jaxon-dialogs
9
 * @author Thierry Feuzeu <[email protected]>
10
 * @copyright 2022 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
21
class CuteAlert extends AbstractLibrary implements AlertInterface, ConfirmInterface
22
{
23
    /**
24
     * @const The library name
25
     */
26
    const NAME = 'cute';
27
28
    /**
29
     * The css files
30
     *
31
     * @var array
32
     */
33
    protected $aCssFiles = ['style.css'];
34
35
    /**
36
     * The js files
37
     *
38
     * @var array
39
     */
40
    protected $aJsFiles = ['cute-alert.js'];
41
42
    /**
43
     * @inheritDoc
44
     */
45
    public function getName(): string
46
    {
47
        return self::NAME;
48
    }
49
50
    /**
51
     * @inheritDoc
52
     */
53
    public function getUri(): string
54
    {
55
        return 'https://cdn.jsdelivr.net/gh/jaxon-php/[email protected]/dist/libs/cute-alert';
56
    }
57
}
58