1 | <?php |
||
16 | abstract class AbstractStringMatch extends ParameterizedUnaryFunction |
||
17 | { |
||
18 | /** |
||
19 | * @param string|ValueHolder $search |
||
20 | * @param bool|ValueHolder $caseSensitive |
||
21 | */ |
||
22 | 129 | public function __construct($search, $caseSensitive = true) |
|
26 | |||
27 | /** |
||
28 | * This is where the real comparison happens |
||
29 | * |
||
30 | * @param string $needle |
||
31 | * @param string $haystack |
||
32 | * |
||
33 | * @return bool |
||
34 | */ |
||
35 | abstract public function match($needle, $haystack); |
||
36 | |||
37 | 129 | public function __invoke($input) |
|
55 | } |
||
56 |