|
static | fromString ($string) |
| Converts a string to an output style.
|
|
static | toString ($outputStyle) |
| Converts an output style to a string supported by {.
|
|
|
const | COMPRESSED = 'compressed' |
|
const | EXPANDED = 'expanded' |
|
◆ 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
-
- Return values
-
◆ 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
-
- Return values
-
The documentation for this class was generated from the following file:
- lib/scssphp/OutputStyle.php