PluginProbe
Metricool – Social media and site statistics / 2.1.1
Metricool – Social media and site statistics v2.1.1
2.1.1 2.1.0 2.0.2 2.0.1 2.0.0 1.27 trunk
← All changes | app/Features/Notifications/Notices/ExampleInactiveNotice.php +43 -0 2.0.1 → 2.1.1 View file →
@@ -1,0 +1,43 @@
1 +<?php
2 +
3 +declare(strict_types=1);
4 +
5 +namespace Metricool\Features\Notifications\Notices;
6 +
7 +class ExampleInactiveNotice extends AbstractNotice
8 +{
9 + public const IDENTIFIER = 'example_inactive_notice';
10 + protected bool $active = false;
11 +
12 + /**
13 + * @inheritDoc
14 + */
15 + public function getTitle(): string
16 + {
17 + return __('This is an inactive notice.', 'metricool');
18 + }
19 +
20 + /**
21 + * @inheritDoc
22 + */
23 + public function getText(): string
24 + {
25 + return __('This is an inactive notice.', 'metricool');
26 + }
27 +
28 + /**
29 + * @inheritDoc
30 + */
31 + public function getType(): string
32 + {
33 + return self::TYPE_INFO;
34 + }
35 +
36 + /**
37 + * @inheritDoc
38 + */
39 + public function getRoute(): string
40 + {
41 + return 'general';
42 + }
43 +}