Passed
Push — main ( f4bc04...829a37 )
by Thierry
02:01
created

Quantum::getUri()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
/**
4
 * Quantum.php
5
 *
6
 * Adapter for the QuantumAlert library.
7
 *
8
 * @package jaxon-dialogs
9
 * @author Thierry Feuzeu <[email protected]>
10
 * @copyright 2025 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 Quantum extends AbstractLibrary implements AlertInterface, ConfirmInterface
22
{
23
    /**
24
     * @const The library name
25
     */
26
    const NAME = 'quantum';
27
28
    /**
29
     * The js files
30
     *
31
     * @var array
32
     */
33
    protected $aJsFiles = ['minfile/quantumalert.js'];
34
35
    /**
36
     * @inheritDoc
37
     */
38
    public function getName(): string
39
    {
40
        return self::NAME;
41
    }
42
43
    /**
44
     * @inheritDoc
45
     */
46
    public function getUri(): string
47
    {
48
        return 'https://cdn.jsdelivr.net/gh/cosmogicofficial/quantumalert@latest';
49
    }
50
}
51