adrema/app/Form/Matchers/Matcher.php

19 lines
285 B
PHP
Raw Normal View History

<?php
namespace App\Form\Matchers;
abstract class Matcher
{
public mixed $value;
public function setValue(mixed $value): self
{
$this->value = $value;
return $this;
}
abstract public function matches(string $comparator, mixed $value): bool;
}