| 1 | <?php |
||
| 11 | abstract class MatchVoter implements Voter |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @param string $haystack |
||
| 15 | * @param Matchable $item |
||
| 16 | * @return bool |
||
| 17 | */ |
||
| 18 | public function match(string $haystack, Matchable &$item): bool |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @param string $haystack |
||
| 31 | * @param string $needle |
||
| 32 | * @return bool |
||
| 33 | */ |
||
| 34 | abstract protected function matches(string $haystack, string $needle): bool; |
||
| 35 | } |
||
| 36 |