Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
AtRuleBlock
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 __construct
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3declare(strict_types=1);
4
5namespace Phpdftk\Css\Sheet;
6
7/**
8 * Body of a nested at-rule like `@media` or `@font-face`. The contents are
9 * either child rules (@media's nested style rules) or declarations
10 * (@font-face's `src`/`font-family`/...). The parser picks per-token
11 * based on the shape of each item.
12 *
13 * @phpstan-type RuleOrDecl Rule|Declaration
14 */
15final readonly class AtRuleBlock
16{
17    /** @param list<Rule|Declaration> $contents */
18    public function __construct(public array $contents) {}
19}