Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
ScssPhp\ScssPhp\ValueConverter Class Reference

Static Public Member Functions

static fromPhp ($value)
 Converts a PHP value to a Sass value.
 
static parseValue ($source)
 Parses a value from a Scss source string.
 

Member Function Documentation

◆ fromPhp()

static ScssPhp\ScssPhp\ValueConverter::fromPhp ( $value)
static

Converts a PHP value to a Sass value.

The returned value is guaranteed to be supported by the Compiler methods for registering custom variables. No other guarantee about it is provided. It should be considered opaque values by the caller.

Parameters
mixed$value
Return values
mixed

◆ parseValue()

static ScssPhp\ScssPhp\ValueConverter::parseValue ( $source)
static

Parses a value from a Scss source string.

The returned value is guaranteed to be supported by the Compiler methods for registering custom variables. No other guarantee about it is provided. It should be considered opaque values by the caller.

Parameters
string$source
Return values
mixed

The documentation for this class was generated from the following file: