PluginProbe
Metricool – Social media and site statistics / trunk
Metricool – Social media and site statistics vtrunk
2.1.0 2.0.2 2.0.1 2.0.0 1.27 trunk
metricool / app / Features / Notifications / Notices / ExamplePremiumNotice.php

ExamplePremiumNotice.php in Metricool – Social media and site statistics trunk, at app/Features/Notifications/Notices/ExamplePremiumNotice.php

58 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 declare(strict_types=1);
4
5 namespace Metricool\Features\Notifications\Notices;
6
7 class ExamplePremiumNotice extends AbstractNotice
8 {
9 public const IDENTIFIER = 'example_premium_notice';
10 protected bool $active = true;
11 protected bool $premium = true;
12
13 /**
14 * @inheritDoc
15 */
16 public function getTitle(): string
17 {
18 return __('This is an premium notice.', 'metricool');
19 }
20
21 /**
22 * @inheritDoc
23 */
24 public function getText(): string
25 {
26 return __('This is an premium notice.', 'metricool');
27 }
28
29 /**
30 * @inheritDoc
31 */
32 public function getType(): string
33 {
34 return self::TYPE_INFO;
35 }
36
37 /**
38 * @inheritDoc
39 */
40 public function getRoute(): string
41 {
42 return 'general';
43 }
44
45
46 /**
47 * @inheritDoc
48 */
49 public function getAction(): array
50 {
51 return [
52 'text' => __('Example text', 'metricool'),
53 'link' => 'https://example.test',
54 'target' => '_blank',
55 ];
56 }
57 }
58