2024-04-20 00:04:20 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Form\Matchers;
|
|
|
|
|
2024-07-12 00:16:50 +02:00
|
|
|
use App\Lib\Editor\Comparator;
|
|
|
|
|
2024-04-20 00:04:20 +02:00
|
|
|
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;
|
2024-04-20 00:04:20 +02:00
|
|
|
}
|