| 1 | <?php |
||
| 18 | class WordMatcher extends RegexMatcher |
||
| 19 | {
|
||
| 20 | private $words = []; |
||
| 21 | private $options = []; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * WordMatcher constructor. |
||
| 25 | * |
||
| 26 | * @param array $words |
||
| 27 | * @param array $options |
||
| 28 | */ |
||
| 29 | 12 | public function __construct(array $words, array $options = []) |
|
| 64 | |||
| 65 | 1 | public function merge(array $words) |
|
| 69 | |||
| 70 | 1 | public function subtract(array $words) |
|
| 74 | |||
| 75 | 3 | public function getWords() |
|
| 79 | |||
| 80 | 3 | public function getOptions() |
|
| 84 | } |
||
| 85 |