| Total Complexity | 5 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | class Toastr extends AbstractLibrary implements AlertInterface |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * @const The library name |
||
| 24 | */ |
||
| 25 | const NAME = 'toastr'; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @inheritDoc |
||
| 29 | */ |
||
| 30 | public function getName(): string |
||
| 31 | { |
||
| 32 | return self::NAME; |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @inheritDoc |
||
| 37 | */ |
||
| 38 | public function getUri(): string |
||
| 39 | { |
||
| 40 | return '//cdnjs.cloudflare.com/ajax/libs/toastr.js/latest'; |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @inheritDoc |
||
| 45 | */ |
||
| 46 | public function getJs(): string |
||
| 47 | { |
||
| 48 | return $this->helper()->getJsCode('js/toastr.min.js'); |
||
| 49 | } |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @inheritDoc |
||
| 53 | */ |
||
| 54 | public function getCss(): string |
||
| 57 | } |
||
| 58 | |||
| 59 | /** |
||
| 60 | * @inheritDoc |
||
| 61 | */ |
||
| 62 | public function getReadyScript(): string |
||
| 65 | } |
||
| 66 | } |
||
| 67 |