Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
ScssPhp\ScssPhp\OutputStyle Class Reference

Static Public Member Functions

static fromString ($string)
 Converts a string to an output style.
 
static toString ($outputStyle)
 Converts an output style to a string supported by {.
 

Public Attributes

const COMPRESSED = 'compressed'
 
const EXPANDED = 'expanded'
 

Member Function Documentation

◆ fromString()

static ScssPhp\ScssPhp\OutputStyle::fromString ( $string)
static

Converts a string to an output style.

Using this method allows to write code which will support both versions 1.12+ and 2.0 of Scssphp. In 2.0, OutputStyle will be an enum instead of using string constants.

Parameters
string$string
Return values
self\*

◆ toString()

static ScssPhp\ScssPhp\OutputStyle::toString ( $outputStyle)
static

Converts an output style to a string supported by {.

See also
OutputStyle\fromString()}.

Using this method allows to write code which will support both versions 1.12+ and 2.0 of Scssphp. In 2.0, OutputStyle will be an enum instead of using string constants. The returned string representation is guaranteed to be compatible between 1.12 and 2.0.

Parameters
self\*$outputStyle
Return values
string

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