Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
AttributeMatchType
n/a
0 / 0
n/a
0 / 0
0
n/a
0 / 0
1<?php
2
3declare(strict_types=1);
4
5namespace Phpdftk\Css\Selector;
6
7/**
8 * Attribute-selector match operators per Selectors 4 §6.5.
9 *
10 * - Exists: `[attr]`
11 * - Equals: `[attr=value]`
12 * - Includes: `[attr~=value]` — space-separated list contains value
13 * - DashMatch: `[attr|=value]` — equal or starts with `value-`
14 * - PrefixMatch: `[attr^=value]`
15 * - SuffixMatch: `[attr$=value]`
16 * - SubstringMatch: `[attr*=value]`
17 */
18enum AttributeMatchType: string
19{
20    case Exists = 'exists';
21    case Equals = '=';
22    case Includes = '~=';
23    case DashMatch = '|=';
24    case PrefixMatch = '^=';
25    case SuffixMatch = '$=';
26    case SubstringMatch = '*=';
27}