# metricool/2.1.1/app/Interfaces/NoticeInterface.php

Metricool – Social media and site statistics, version 2.1.1. 47 lines.

- Page: https://pluginprobe.com/plugins/metricool/2.1.1/code/app/Interfaces/NoticeInterface.php
- Raw: https://pluginprobe.com/plugins/metricool/2.1.1/raw/app/Interfaces/NoticeInterface.php
- Modified: 2026-08-20T14:08:30+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.1.1/code/app/Interfaces/NoticeInterface.php#L10-L20`.

```php
<?php

declare(strict_types=1);

namespace Metricool\Interfaces;

interface NoticeInterface
{
    /**
     * Returns the unique identifier of the notice
     */
    public function getId(): string;

    /**
     * Returns the version of the notice
     */
    public function getVersion(): string;

    /**
     * Method is used to add a link to the UI of the notice item.
     * Example (normal link):
     *  [
     *       'text' => 'Link text',
     *       'link' => 'https://example.com' | '/services/new,
     *  ]
     * Example (login link):
     * [
     *      'text' => 'Link text',
     *      'login_link' => '/v2/management/',
     * ]
     */
    public function getAction(): array;

    /**
     * Returns all data needed to show the notice in the UI. Keys that are
     * required are 'id', 'text', 'status', 'type' and 'action'.
     */
    public function toArray(): array;

    /**
     * Use this method to set the notice as active based on a server-side
     * condition. By default, a notice can activate based on a client-side
     * condition.
     */
    public function setActive(bool $state = false): void;
}

```
