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

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

- Page: https://pluginprobe.com/plugins/metricool/2.0.2/code/app/Features/Notifications/Notices/ExampleConnectionsWarning.php
- Raw: https://pluginprobe.com/plugins/metricool/2.0.2/raw/app/Features/Notifications/Notices/ExampleConnectionsWarning.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/ExampleConnectionsWarning.php#L10-L20`.

```php
<?php

declare(strict_types=1);

namespace Metricool\Features\Notifications\Notices;

use Metricool\Support\Helpers\MetricoolUrl;
use Metricool\Support\Helpers\Storages\EnvironmentConfig;

class ExampleConnectionsWarning extends AbstractNotice
{
    public const IDENTIFIER = 'example_connections_warning';
    protected bool $active = true;

    private EnvironmentConfig $env;

    public function __construct(EnvironmentConfig $env)
    {
        $this->env = $env;
    }

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

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

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

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

    /**
     * @inheritDoc
     */
    public function getAction(): array
    {
        return [
            'text' => __('Connect', 'metricool'),
            'link' => MetricoolUrl::adminUrl($this->env->getUrl('metricool.connect_network_url')),
            'target' => '_blank',
        ];
    }
}

```
