Documentations › mmo.client › php › scs CssRule MMO\client\scs · 1 symbol · generated 30 Sep 2026
One generated css rule, before emission.
class MMO\client\scs\CssRule Namespace MMO\client\scsA rule carries its emission priority (`@order`), the at-rules it is wrapped in (`@media`, `@supports`,
`@keyframes`) -- so [`Emitter`](https://mmoframework.fr/documentation/mmo.client/php/scs/Emitter.md#emitter) can sort and group everything at the very end of the pipeline -- and the
source position of its selector and of each declaration, for the source map. Properties7 array $declarations = [] Type array ?MMO\client\scs\SourceLocation $location Type null | SourceLocation int $order Type int array $selectors Type array int $seq Type int bool $statement = false Type bool array $wrappers Type array Methods6 function add(
string $property,
string $value,
int $order,
int $seq,
?MMO\client\scs\SourceLocation $location = null
): void function group(): string returns string the key identifying the at-rule chain this rule belongs to
function isEmpty(): bool function selector(): string function sorted(): array returns array the declarations, sorted by @order then by source order
__construct($selectors, $wrappers, $order, $seq, $location) CssRule.php:24 function __construct(
array $selectors = [],
array $wrappers = [],
int $order = 0,
int $seq = 0,
?MMO\client\scs\SourceLocation $location = null
) $selectors = [] array the resolved selectors this rule emits $wrappers = [] array the at-rules wrapping it, outermost first, ex: ['@media (min-width: 768px)'] $order = 0 int the @order priority, higher is emitted later $seq = 0 int the creation rank, used to keep the source order within a priority $location = null null | SourceLocation where the rule was written, for the source map