Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| StyleRule | |
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\Sheet; |
| 6 | |
| 7 | use Phpdftk\Css\Selector\SelectorList; |
| 8 | |
| 9 | /** |
| 10 | * A "qualified rule" with a selector prelude and a block of declarations. |
| 11 | * The `selectors` SelectorList carries the raw selector text in Phase 1A.3; |
| 12 | * its `selectors` array fills in when the selector engine ships in 1D. |
| 13 | */ |
| 14 | final readonly class StyleRule extends Rule |
| 15 | { |
| 16 | /** @param list<Declaration> $declarations */ |
| 17 | public function __construct( |
| 18 | public SelectorList $selectors, |
| 19 | public array $declarations, |
| 20 | ) {} |
| 21 | } |