# metricool/2.0.2/app/Features/Notifications/Notices/ExamplePremiumNotice.php

Metricool – Social media and site statistics, version 2.0.2. 58 lines.

- Page: https://pluginprobe.com/plugins/metricool/2.0.2/code/app/Features/Notifications/Notices/ExamplePremiumNotice.php
- Raw: https://pluginprobe.com/plugins/metricool/2.0.2/raw/app/Features/Notifications/Notices/ExamplePremiumNotice.php
- Modified: 2026-06-11T08:45:10+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/metricool/2.0.2/code/app/Features/Notifications/Notices/ExamplePremiumNotice.php#L10-L20`.

```php
<?php

declare(strict_types=1);

namespace Metricool\Features\Notifications\Notices;

class ExamplePremiumNotice extends AbstractNotice
{
    public const IDENTIFIER = 'example_premium_notice';
    protected bool $active = true;
    protected bool $premium = true;

    /**
     * @inheritDoc
     */
    public function getTitle(): string
    {
        return __('This is an premium notice.', 'metricool');
    }

    /**
     * @inheritDoc
     */
    public function getText(): string
    {
        return __('This is an premium notice.', 'metricool');
    }

    /**
     * @inheritDoc
     */
    public function getType(): string
    {
        return self::TYPE_INFO;
    }

    /**
     * @inheritDoc
     */
    public function getRoute(): string
    {
        return 'general';
    }


    /**
     * @inheritDoc
     */
    public function getAction(): array
    {
        return [
            'text' => __('Example text', 'metricool'),
            'link' => 'https://example.test',
            'target' => '_blank',
        ];
    }
}

```
