vendor/wikimedia/css-sanitizer/src/Grammar/NothingMatcher.php
raw| 1 | <?php |
| 2 | /** |
| 3 | * @file |
| 4 | * @license https://opensource.org/licenses/Apache-2.0 Apache-2.0 |
| 5 | */ |
| 6 | |
| 7 | namespace Wikimedia\CSS\Grammar; |
| 8 | |
| 9 | use EmptyIterator; |
| 10 | use Wikimedia\CSS\Objects\ComponentValueList; |
| 11 | |
| 12 | /** |
| 13 | * Matcher that matches nothing |
| 14 | */ |
| 15 | class NothingMatcher extends Matcher { |
| 16 | /** @inheritDoc */ |
| 17 | protected function generateMatches( ComponentValueList $values, $start, array $options ) { |
| 18 | return new EmptyIterator; |
| 19 | } |
| 20 | } |