<?php

declare(strict_types=1);

namespace PpPhp\Core\Maintenance\Contracts;

use PpPhp\Core\Maintenance\Results\MaintenanceIssue;

interface MaintenanceRuleInterface
{
    public function id(): string;

    public function label(): string;

    public function severity(): string;

    /**
     * @return MaintenanceIssue[]
     */
    public function check(array $context): array;
}
