Debian Codegraph @

vendor/sabberworm/php-css-parser/src/CSSList/CSSListItem.php

raw
1 <?php
2
3 declare(strict_types=1);
4
5 namespace Sabberworm\CSS\CSSList;
6
7 use Sabberworm\CSS\Comment\Commentable;
8 use Sabberworm\CSS\Renderable;
9
10 /**
11 * Represents anything that can be in the `$contents` of a `CSSList`.
12 *
13 * The interface does not define any methods to implement.
14 * It's purpose is to allow a single type to be specified for `CSSList::$contents` and manipulation methods thereof.
15 * It extends `Commentable` and `Renderable` because all `CSSListItem`s are both.
16 * This allows implementations to call methods from those interfaces without any additional type checks.
17 */
18 interface CSSListItem extends Commentable, Renderable {}