klitsche/dog

View on GitHub
src/Analyzer/RuleInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
<?php

declare(strict_types=1);

namespace Klitsche\Dog\Analyzer;

use Klitsche\Dog\Elements\ElementInterface;

interface RuleInterface extends AnalyzeInterface
{
    public static function create(string $id, string $issueLevel, array $match = []): self;

    public function matches(ElementInterface $element): bool;

    public function getId(): string;
}