Notyf   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getUri() 0 3 1
A getName() 0 3 1
1
<?php
2
3
/**
4
 * Notyf.php
5
 *
6
 * Adapter for the Toastr 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 Notyf extends AbstractLibrary implements AlertInterface
21
{
22
    /**
23
     * @const The library name
24
     */
25
    const NAME = 'notyf';
26
27
    /**
28
     * The css files
29
     *
30
     * @var array
31
     */
32
    protected $aCssFiles = ['notyf.min.css'];
33
34
    /**
35
     * The js files
36
     *
37
     * @var array
38
     */
39
    protected $aJsFiles = ['notyf.min.js'];
40
41
    /**
42
     * @inheritDoc
43
     */
44
    public function getName(): string
45
    {
46
        return self::NAME;
47
    }
48
49
    /**
50
     * @inheritDoc
51
     */
52
    public function getUri(): string
53
    {
54
        return 'https://cdn.jsdelivr.net/npm/notyf@3';
55
    }
56
}
57