Total Complexity | 5 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
21 | class JAlert extends AbstractLibrary implements AlertInterface, ConfirmInterface |
||
22 | { |
||
23 | /** |
||
24 | * @const The library name |
||
25 | */ |
||
26 | const NAME = 'jalert'; |
||
27 | |||
28 | /** |
||
29 | * @inheritDoc |
||
30 | */ |
||
31 | public function getName(): string |
||
32 | { |
||
33 | return self::NAME; |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * @inheritDoc |
||
38 | */ |
||
39 | public function getUri(): string |
||
40 | { |
||
41 | return 'https://cdn.jsdelivr.net/npm/[email protected]/dist'; |
||
42 | } |
||
43 | |||
44 | /** |
||
45 | * @inheritDoc |
||
46 | */ |
||
47 | public function getJs(): string |
||
48 | { |
||
49 | return $this->helper()->getJsCode('jAlert.min.js'); |
||
50 | } |
||
51 | |||
52 | /** |
||
53 | * @inheritDoc |
||
54 | */ |
||
55 | public function getCss(): string |
||
56 | { |
||
57 | return $this->helper()->getCssCode('jAlert.min.css'); |
||
58 | } |
||
59 | |||
60 | /** |
||
61 | * @inheritDoc |
||
62 | */ |
||
63 | public function getReadyScript(): string |
||
66 | } |
||
67 | } |
||
68 |