adrema/app/Form/Matchers/Matcher.php

21 lines
321 B
PHP
Raw Normal View History

<?php
namespace App\Form\Matchers;
2024-07-12 00:16:50 +02:00
use App\Lib\Editor\Comparator;
abstract class Matcher
{
public mixed $value;
public function setValue(mixed $value): self
{
$this->value = $value;
return $this;
}
2024-07-12 00:16:50 +02:00
abstract public function matches(Comparator $comparator, mixed $value): bool;
}