Passed
Push — main ( b60575...6191ca )
by Thierry
01:54
created

Notify::getJs()   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
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * NotifyLibrary.php
5
 *
6
 * Adapter for the Notify 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
20
class Notify extends AbstractLibrary implements AlertInterface
21
{
22
    /**
23
     * @const The library name
24
     */
25
    const NAME = 'notify';
26
27
    /**
28
     * The js files
29
     *
30
     * @var array
31
     */
32
    protected $aJsFiles = ['notify.min.js'];
33
34
    /**
35
     * @inheritDoc
36
     */
37
    public function getName(): string
38
    {
39
        return self::NAME;
40
    }
41
42
    /**
43
     * @inheritDoc
44
     */
45
    public function getUri(): string
46
    {
47
        return 'https://cdn.jsdelivr.net/npm/[email protected]';
48
    }
49
}
50