Index

CompilationContext

MMO\client\scs · 1 symbol · generated 30 Sep 2026

class

CompilationContext

CompilationContext.php:13

The values a php application injects into a compilation, read from scs as context::name.

class MMO\client\scs\CompilationContext
Namespace
MMO\client\scs
The context is read-only from the stylesheet: scs can never mutate the application's state, and never has implicit access to anything the application did not explicitly put here (`the` spec, 15B.7).
$context = new CompilationContext(['density' => 2, 'design' => ['spacing' => ['md' => '16px']]]); $context->get('design.spacing.md'); // '16px'

Properties1

values

protected array $values
Type
array

Methods6

find($path, $found)

CompilationContext.php:52
protected function find(string $path, ?bool &$found = null): mixed
$pathstring
$found = nullnull | boolset to true when the path exists (so a stored null is not mistaken for a miss)
returnsmixed