Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| NothingMatcher | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| generateMatches | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 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 | } |