Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| CompoundSelectorWithCombinator | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Phpdftk\Css\Selector; |
| 6 | |
| 7 | /** |
| 8 | * A compound paired with the combinator that joins it to the next compound |
| 9 | * to its right. The right-most compound of a complex selector has a `null` |
| 10 | * combinator since nothing follows it. |
| 11 | * |
| 12 | * Per the cross-package contract documented in `docs/plans/contracts.md`, |
| 13 | * `ComplexSelector::$compounds` is the canonical exposed shape. This wrapper |
| 14 | * is the element of that list. |
| 15 | */ |
| 16 | final readonly class CompoundSelectorWithCombinator |
| 17 | { |
| 18 | public function __construct( |
| 19 | public CompoundSelector $compound, |
| 20 | public ?Combinator $combinatorToNext, |
| 21 | ) {} |
| 22 | } |