| 1 | <?php |
||
| 8 | final class Contains implements PatternExpander |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var null|string |
||
| 12 | */ |
||
| 13 | private $error; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var |
||
| 17 | */ |
||
| 18 | private $string; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var bool |
||
| 22 | */ |
||
| 23 | private $ignoreCase; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param $string |
||
| 27 | * @param bool $ignoreCase |
||
| 28 | */ |
||
| 29 | public function __construct($string, $ignoreCase = false) |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @param $value |
||
| 37 | * @return boolean |
||
| 38 | */ |
||
| 39 | public function match($value) |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @return string|null |
||
| 60 | */ |
||
| 61 | public function getError() |
||
| 65 | } |
||
| 66 |