A SassScript calculation.
Although calculations can in principle have any name or any number of arguments, this class only exposes the specific calculations that are supported by the Sass spec. This ensures that all calculations that the user works with are always fully simplified.
| package |
Application |
|---|
__construct(stringname, list<object>arguments) : mixed
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
string
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
list
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
mixed
__toString() : string
Note that this is equivalent to calling inspect() on the value, and thus
won't reflect the user's output settings. {@see \ScssPhp\ScssPhp\Value\toCssString} should be used
instead to convert $this to CSS.
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
string
abs(objectargument) : \ScssPhp\ScssPhp\Value\Value
The $argument must be either a {@see \ScssPhp\ScssPhp\Value\SassNumber}, a {@see \ScssPhp\ScssPhp\Value\SassCalculation}, an unquoted {@see \ScssPhp\ScssPhp\Value\SassString}, or a {@see \ScssPhp\ScssPhp\Value\CalculationOperation}.
This automatically simplifies the calculation, so it may return a {@see \ScssPhp\ScssPhp\Value\SassNumber} rather than a {@see \ScssPhp\ScssPhp\Value\SassCalculation}. It throws an exception if it can determine that the calculation will definitely produce invalid CSS.
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
object
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
\ScssPhp\ScssPhp\Value\Value
accept(\ScssPhp\ScssPhp\Visitor\ValueVisitorvisitor) : mixed
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
\ScssPhp\ScssPhp\Visitor\ValueVisitor
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
mixed
acos(objectargument) : \ScssPhp\ScssPhp\Value\Value
The $argument must be either a {@see \ScssPhp\ScssPhp\Value\SassNumber}, a {@see \ScssPhp\ScssPhp\Value\SassCalculation}, an unquoted {@see \ScssPhp\ScssPhp\Value\SassString}, or a {@see \ScssPhp\ScssPhp\Value\CalculationOperation}.
This automatically simplifies the calculation, so it may return a {@see \ScssPhp\ScssPhp\Value\SassNumber} rather than a {@see \ScssPhp\ScssPhp\Value\SassCalculation}. It throws an exception if it can determine that the calculation will definitely produce invalid CSS.
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
object
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
\ScssPhp\ScssPhp\Value\Value
asin(objectargument) : \ScssPhp\ScssPhp\Value\Value
The $argument must be either a {@see \ScssPhp\ScssPhp\Value\SassNumber}, a {@see \ScssPhp\ScssPhp\Value\SassCalculation}, an unquoted {@see \ScssPhp\ScssPhp\Value\SassString}, or a {@see \ScssPhp\ScssPhp\Value\CalculationOperation}.
This automatically simplifies the calculation, so it may return a {@see \ScssPhp\ScssPhp\Value\SassNumber} rather than a {@see \ScssPhp\ScssPhp\Value\SassCalculation}. It throws an exception if it can determine that the calculation will definitely produce invalid CSS.
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
object
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
\ScssPhp\ScssPhp\Value\Value
asList() : list<\ScssPhp\ScssPhp\Value\Value>
All SassScript values can be used as lists. Maps count as lists of pairs, and all other values count as single-value lists.
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
list<\ScssPhp\ScssPhp\Value\Value>
assertBoolean(?stringname = null) : \ScssPhp\ScssPhp\Value\SassBoolean
Note that generally, functions should use {@see \ScssPhp\ScssPhp\Value\isTruthy} rather than requiring a literal boolean.
If this came from a function argument, $name is the argument name
(without the $). It's used for error reporting.
| Throws |
|
|---|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
?string
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
\ScssPhp\ScssPhp\Value\SassBoolean
assertCalculation(?stringname = null) : \ScssPhp\ScssPhp\Value\SassCalculation
If this came from a function argument, $name is the argument name
(without the $). It's used for error reporting.
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
?string
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
\ScssPhp\ScssPhp\Value\SassCalculation
assertColor(?stringname = null) : \ScssPhp\ScssPhp\Value\SassColor
If this came from a function argument, $name is the argument name
(without the $). It's used for error reporting.
| Throws |
|
|---|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
?string
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
\ScssPhp\ScssPhp\Value\SassColor
assertFunction(?stringname = null) : \ScssPhp\ScssPhp\Value\SassFunction
If this came from a function argument, $name is the argument name
(without the $). It's used for error reporting.
| Throws |
|
|---|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
?string
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
\ScssPhp\ScssPhp\Value\SassFunction
assertMap(?stringname = null) : \ScssPhp\ScssPhp\Value\SassMap
If this came from a function argument, $name is the argument name
(without the $). It's used for error reporting.
| Throws |
|
|---|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
?string
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
\ScssPhp\ScssPhp\Value\SassMap
assertNumber(?stringname = null) : \ScssPhp\ScssPhp\Value\SassNumber
If this came from a function argument, $name is the argument name
(without the $). It's used for error reporting.
| Throws |
|
|---|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
?string
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
\ScssPhp\ScssPhp\Value\SassNumber
assertString(?stringname = null) : \ScssPhp\ScssPhp\Value\SassString
If this came from a function argument, $name is the argument name
(without the $). It's used for error reporting.
| Throws |
|
|---|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
?string
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
\ScssPhp\ScssPhp\Value\SassString
atan(objectargument) : \ScssPhp\ScssPhp\Value\Value
The $argument must be either a {@see \ScssPhp\ScssPhp\Value\SassNumber}, a {@see \ScssPhp\ScssPhp\Value\SassCalculation}, an unquoted {@see \ScssPhp\ScssPhp\Value\SassString}, or a {@see \ScssPhp\ScssPhp\Value\CalculationOperation}.
This automatically simplifies the calculation, so it may return a {@see \ScssPhp\ScssPhp\Value\SassNumber} rather than a {@see \ScssPhp\ScssPhp\Value\SassCalculation}. It throws an exception if it can determine that the calculation will definitely produce invalid CSS.
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
object
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
\ScssPhp\ScssPhp\Value\Value
atan2(objecty, ?objectx) : \ScssPhp\ScssPhp\Value\Value
Each argument must be either a {@see \ScssPhp\ScssPhp\Value\SassNumber}, a {@see \ScssPhp\ScssPhp\Value\SassCalculation}, an unquoted {@see \ScssPhp\ScssPhp\Value\SassString}, or a {@see \ScssPhp\ScssPhp\Value\CalculationOperation}.
This automatically simplifies the calculation, so it may return a {@see \ScssPhp\ScssPhp\Value\SassNumber} rather than a {@see \ScssPhp\ScssPhp\Value\SassCalculation}. It throws an exception if it can determine that the calculation will definitely produce invalid CSS.
This may be passed fewer than two arguments, but only if one of the
arguments is an unquoted var() string.
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
object
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
?object
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
\ScssPhp\ScssPhp\Value\Value
calc(objectargument) : \ScssPhp\ScssPhp\Value\Value
The $argument must be either a {@see \ScssPhp\ScssPhp\Value\SassNumber}, a {@see \ScssPhp\ScssPhp\Value\SassCalculation}, an unquoted {@see \ScssPhp\ScssPhp\Value\SassString}, or a {@see \ScssPhp\ScssPhp\Value\CalculationOperation}.
This automatically simplifies the calculation, so it may return a {@see \ScssPhp\ScssPhp\Value\SassNumber} rather than a {@see \ScssPhp\ScssPhp\Value\SassCalculation}. It throws an exception if it can determine that the calculation will definitely produce invalid CSS.
| Throws |
|
|---|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
object
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
\ScssPhp\ScssPhp\Value\Value
charNeedsParentheses(stringcharacter) : bool
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
string
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
bool
clamp(objectmin, ?objectvalue = null, ?objectmax = null) : \ScssPhp\ScssPhp\Value\Value
Each argument must be either a {@see \ScssPhp\ScssPhp\Value\SassNumber}, a {@see \ScssPhp\ScssPhp\Value\SassCalculation}, an unquoted {@see \ScssPhp\ScssPhp\Value\SassString}, or a {@see \ScssPhp\ScssPhp\Value\CalculationOperation}.
This automatically simplifies the calculation, so it may return a {@see \ScssPhp\ScssPhp\Value\SassNumber} rather than a {@see \ScssPhp\ScssPhp\Value\SassCalculation}. It throws an exception if it can determine that the calculation will definitely produce invalid CSS.
This may be passed fewer than three arguments, but only if one of the
arguments is an unquoted var() string.
| Throws |
|
|---|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
object
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
?object
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
?object
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
\ScssPhp\ScssPhp\Value\Value
cos(objectargument) : \ScssPhp\ScssPhp\Value\Value
The $argument must be either a {@see \ScssPhp\ScssPhp\Value\SassNumber}, a {@see \ScssPhp\ScssPhp\Value\SassCalculation}, an unquoted {@see \ScssPhp\ScssPhp\Value\SassString}, or a {@see \ScssPhp\ScssPhp\Value\CalculationOperation}.
This automatically simplifies the calculation, so it may return a {@see \ScssPhp\ScssPhp\Value\SassNumber} rather than a {@see \ScssPhp\ScssPhp\Value\SassCalculation}. It throws an exception if it can determine that the calculation will definitely produce invalid CSS.
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
object
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
\ScssPhp\ScssPhp\Value\Value
equals(objectother) : bool
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
object
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
bool
exp(objectargument) : \ScssPhp\ScssPhp\Value\Value
The $argument must be either a {@see \ScssPhp\ScssPhp\Value\SassNumber}, a {@see \ScssPhp\ScssPhp\Value\SassCalculation}, an unquoted {@see \ScssPhp\ScssPhp\Value\SassString}, or a {@see \ScssPhp\ScssPhp\Value\CalculationOperation}.
This automatically simplifies the calculation, so it may return a {@see \ScssPhp\ScssPhp\Value\SassNumber} rather than a {@see \ScssPhp\ScssPhp\Value\SassCalculation}. It throws an exception if it can determine that the calculation will definitely produce invalid CSS.
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
object
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
\ScssPhp\ScssPhp\Value\Value
getArguments() : list<object>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
list
getLengthAsList() : int
This is used to compute {@see \ScssPhp\ScssPhp\Value\sassIndexToListIndex} without allocating a new list.
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
int
getName() : string
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
string
getSeparator() : \ScssPhp\ScssPhp\Value\ListSeparator
All SassScript values can be used as lists. Maps count as lists of pairs, and all other values count as single-value lists.
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
\ScssPhp\ScssPhp\Value\ListSeparator
hasBrackets() : bool
All SassScript values can be used as lists. Maps count as lists of pairs, and all other values count as single-value lists.
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
bool
hypot(list<object>arguments) : \ScssPhp\ScssPhp\Value\Value
Each argument must be either a {@see \ScssPhp\ScssPhp\Value\SassNumber}, a {@see \ScssPhp\ScssPhp\Value\SassCalculation}, an unquoted {@see \ScssPhp\ScssPhp\Value\SassString}, or a {@see \ScssPhp\ScssPhp\Value\CalculationOperation}. It must be passed at least one argument.
This automatically simplifies the calculation, so it may return a {@see \ScssPhp\ScssPhp\Value\SassNumber} rather than a {@see \ScssPhp\ScssPhp\Value\SassCalculation}. It throws an exception if it can determine that the calculation will definitely produce invalid CSS.
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
list
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
\ScssPhp\ScssPhp\Value\Value
isSpecialNumber() : bool
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
bool
isTruthy() : bool
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
bool
log(objectnumber, ?objectbase) : \ScssPhp\ScssPhp\Value\Value
Each argument must be either a {@see \ScssPhp\ScssPhp\Value\SassNumber}, a {@see \ScssPhp\ScssPhp\Value\SassCalculation}, an unquoted {@see \ScssPhp\ScssPhp\Value\SassString}, or a {@see \ScssPhp\ScssPhp\Value\CalculationOperation}.
This automatically simplifies the calculation, so it may return a {@see \ScssPhp\ScssPhp\Value\SassNumber} rather than a {@see \ScssPhp\ScssPhp\Value\SassCalculation}. It throws an exception if it can determine that the calculation will definitely produce invalid CSS.
If arguments contains exactly a single argument, the base is set to
math.e by default.
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
object
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
?object
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
\ScssPhp\ScssPhp\Value\Value
matchUnits(floatvalue, \ScssPhp\ScssPhp\Value\SassNumbernumber) : \ScssPhp\ScssPhp\Value\SassNumber
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
float
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
\ScssPhp\ScssPhp\Value\SassNumber
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
\ScssPhp\ScssPhp\Value\SassNumber
max(list<object>arguments) : \ScssPhp\ScssPhp\Value\Value
Each argument must be either a {@see \ScssPhp\ScssPhp\Value\SassNumber}, a {@see \ScssPhp\ScssPhp\Value\SassCalculation}, an unquoted {@see \ScssPhp\ScssPhp\Value\SassString}, or a {@see \ScssPhp\ScssPhp\Value\CalculationOperation}. It must be passed at least one argument.
This automatically simplifies the calculation, so it may return a {@see \ScssPhp\ScssPhp\Value\SassNumber} rather than a {@see \ScssPhp\ScssPhp\Value\SassCalculation}. It throws an exception if it can determine that the calculation will definitely produce invalid CSS.
| Throws |
|
|---|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
list
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
\ScssPhp\ScssPhp\Value\Value
min(list<object>arguments) : \ScssPhp\ScssPhp\Value\Value
Each argument must be either a {@see \ScssPhp\ScssPhp\Value\SassNumber}, a {@see \ScssPhp\ScssPhp\Value\SassCalculation}, an unquoted {@see \ScssPhp\ScssPhp\Value\SassString}, or a {@see \ScssPhp\ScssPhp\Value\CalculationOperation}. It must be passed at least one argument.
This automatically simplifies the calculation, so it may return a {@see \ScssPhp\ScssPhp\Value\SassNumber} rather than a {@see \ScssPhp\ScssPhp\Value\SassCalculation}. It throws an exception if it can determine that the calculation will definitely produce invalid CSS.
| Throws |
|
|---|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
list
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
\ScssPhp\ScssPhp\Value\Value
minus(\ScssPhp\ScssPhp\Value\Valueother) : \ScssPhp\ScssPhp\Value\Value
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
\ScssPhp\ScssPhp\Value\Value
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
\ScssPhp\ScssPhp\Value\Value
mod(objectdividend, ?objectmodulus) : \ScssPhp\ScssPhp\Value\Value
Each argument must be either a {@see \ScssPhp\ScssPhp\Value\SassNumber}, a {@see \ScssPhp\ScssPhp\Value\SassCalculation}, an unquoted {@see \ScssPhp\ScssPhp\Value\SassString}, or a {@see \ScssPhp\ScssPhp\Value\CalculationOperation}.
This automatically simplifies the calculation, so it may return a {@see \ScssPhp\ScssPhp\Value\SassNumber} rather than a {@see \ScssPhp\ScssPhp\Value\SassCalculation}. It throws an exception if it can determine that the calculation will definitely produce invalid CSS.
This may be passed fewer than two arguments, but only if one of the
arguments is an unquoted var() string.
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
object
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
?object
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
\ScssPhp\ScssPhp\Value\Value
needsParentheses(stringtext) : bool
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
string
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
bool
operate(\ScssPhp\ScssPhp\Value\CalculationOperatoroperator, objectleft, objectright) : object
This automatically simplifies the operation, so it may return a {@see \ScssPhp\ScssPhp\Value\SassNumber} rather than a {@see \ScssPhp\ScssPhp\Value\CalculationOperation}.
Each of $left and $right must be either a {@see \ScssPhp\ScssPhp\Value\SassNumber}, a {@see \ScssPhp\ScssPhp\Value\SassCalculation}, an unquoted {@see \ScssPhp\ScssPhp\Value\SassString}, or a {@see \ScssPhp\ScssPhp\Value\CalculationOperation}.
| Throws |
|
|---|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
\ScssPhp\ScssPhp\Value\CalculationOperator
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
object
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
object
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
object
plus(\ScssPhp\ScssPhp\Value\Valueother) : \ScssPhp\ScssPhp\Value\Value
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
\ScssPhp\ScssPhp\Value\Value
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
\ScssPhp\ScssPhp\Value\Value
pow(objectbase, ?objectexponent) : \ScssPhp\ScssPhp\Value\Value
Each argument must be either a {@see \ScssPhp\ScssPhp\Value\SassNumber}, a {@see \ScssPhp\ScssPhp\Value\SassCalculation}, an unquoted {@see \ScssPhp\ScssPhp\Value\SassString}, or a {@see \ScssPhp\ScssPhp\Value\CalculationOperation}.
This automatically simplifies the calculation, so it may return a {@see \ScssPhp\ScssPhp\Value\SassNumber} rather than a {@see \ScssPhp\ScssPhp\Value\SassCalculation}. It throws an exception if it can determine that the calculation will definitely produce invalid CSS.
This may be passed fewer than two arguments, but only if one of the
arguments is an unquoted var() string.
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
object
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
?object
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
\ScssPhp\ScssPhp\Value\Value
rem(objectdividend, ?objectmodulus) : \ScssPhp\ScssPhp\Value\Value
Each argument must be either a {@see \ScssPhp\ScssPhp\Value\SassNumber}, a {@see \ScssPhp\ScssPhp\Value\SassCalculation}, an unquoted {@see \ScssPhp\ScssPhp\Value\SassString}, or a {@see \ScssPhp\ScssPhp\Value\CalculationOperation}.
This automatically simplifies the calculation, so it may return a {@see \ScssPhp\ScssPhp\Value\SassNumber} rather than a {@see \ScssPhp\ScssPhp\Value\SassCalculation}. It throws an exception if it can determine that the calculation will definitely produce invalid CSS.
This may be passed fewer than two arguments, but only if one of the
arguments is an unquoted var() string.
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
object
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
?object
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
\ScssPhp\ScssPhp\Value\Value
round(objectstrategyOrNumber, ?objectnumberOrStep = null, ?objectstep = null) : \ScssPhp\ScssPhp\Value\Value
Number and step must be either a {@see \ScssPhp\ScssPhp\Value\SassNumber}, a {@see \ScssPhp\ScssPhp\Value\SassCalculation}, an unquoted {@see \ScssPhp\ScssPhp\Value\SassString}, or a {@see \ScssPhp\ScssPhp\Value\CalculationOperation}.
This automatically simplifies the calculation, so it may return a {@see \ScssPhp\ScssPhp\Value\SassNumber} rather than a {@see \ScssPhp\ScssPhp\Value\SassCalculation}. It throws an exception if it can determine that the calculation will definitely produce invalid CSS.
This may be passed fewer than two arguments, but only if one of the
arguments is an unquoted var() string.
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
object
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
?object
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
?object
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
\ScssPhp\ScssPhp\Value\Value
roundWithStep(stringstrategy, \ScssPhp\ScssPhp\Value\SassNumbernumber, \ScssPhp\ScssPhp\Value\SassNumberstep) : \ScssPhp\ScssPhp\Value\SassNumber
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
string
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
\ScssPhp\ScssPhp\Value\SassNumber
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
\ScssPhp\ScssPhp\Value\SassNumber
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
\ScssPhp\ScssPhp\Value\SassNumber
sassIndexToListIndex(\ScssPhp\ScssPhp\Value\ValuesassIndex, ?stringname = null) : int
Sass indexes are one-based, while PHP indexes are zero-based. Sass indexes may also be negative in order to index from the end of the list.
| Throws |
|
|---|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
\ScssPhp\ScssPhp\Value\Value
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
?string
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
int
selectorString(?stringname) : string
| Throws |
|
|---|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
?string
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
string
selectorStringOrNull() : ?string
Returns null if $this isn't a type or a structure that can be parsed as
a selector.
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
?string
sign(objectargument) : \ScssPhp\ScssPhp\Value\Value
The $argument must be either a {@see \ScssPhp\ScssPhp\Value\SassNumber}, a {@see \ScssPhp\ScssPhp\Value\SassCalculation}, an unquoted {@see \ScssPhp\ScssPhp\Value\SassString}, or a {@see \ScssPhp\ScssPhp\Value\CalculationOperation}.
This automatically simplifies the calculation, so it may return a {@see \ScssPhp\ScssPhp\Value\SassNumber} rather than a {@see \ScssPhp\ScssPhp\Value\SassCalculation}. It throws an exception if it can determine that the calculation will definitely produce invalid CSS.
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
object
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
\ScssPhp\ScssPhp\Value\Value
simplify(objectarg) : \ScssPhp\ScssPhp\Value\SassNumber|\ScssPhp\ScssPhp\Value\CalculationOperation|\ScssPhp\ScssPhp\Value\SassString|\ScssPhp\ScssPhp\Value\SassCalculation
| Throws |
|
|---|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
object
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
\ScssPhp\ScssPhp\Value\SassNumber|\ScssPhp\ScssPhp\Value\CalculationOperation|\ScssPhp\ScssPhp\Value\SassString|\ScssPhp\ScssPhp\Value\SassCalculation
simplifyArguments(list<object>args) : list<object>
| Throws |
|
|---|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
list
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
list
sin(objectargument) : \ScssPhp\ScssPhp\Value\Value
The $argument must be either a {@see \ScssPhp\ScssPhp\Value\SassNumber}, a {@see \ScssPhp\ScssPhp\Value\SassCalculation}, an unquoted {@see \ScssPhp\ScssPhp\Value\SassString}, or a {@see \ScssPhp\ScssPhp\Value\CalculationOperation}.
This automatically simplifies the calculation, so it may return a {@see \ScssPhp\ScssPhp\Value\SassNumber} rather than a {@see \ScssPhp\ScssPhp\Value\SassCalculation}. It throws an exception if it can determine that the calculation will definitely produce invalid CSS.
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
object
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
\ScssPhp\ScssPhp\Value\Value
singleArgument(stringname, objectargument, callablemathFunc, boolforbidUnits = false) : \ScssPhp\ScssPhp\Value\Value
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
string
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
object
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
callable
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
bool
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
\ScssPhp\ScssPhp\Value\Value
sqrt(objectargument) : \ScssPhp\ScssPhp\Value\Value
The $argument must be either a {@see \ScssPhp\ScssPhp\Value\SassNumber}, a {@see \ScssPhp\ScssPhp\Value\SassCalculation}, an unquoted {@see \ScssPhp\ScssPhp\Value\SassString}, or a {@see \ScssPhp\ScssPhp\Value\CalculationOperation}.
This automatically simplifies the calculation, so it may return a {@see \ScssPhp\ScssPhp\Value\SassNumber} rather than a {@see \ScssPhp\ScssPhp\Value\SassCalculation}. It throws an exception if it can determine that the calculation will definitely produce invalid CSS.
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
object
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
\ScssPhp\ScssPhp\Value\Value
tan(objectargument) : \ScssPhp\ScssPhp\Value\Value
The $argument must be either a {@see \ScssPhp\ScssPhp\Value\SassNumber}, a {@see \ScssPhp\ScssPhp\Value\SassCalculation}, an unquoted {@see \ScssPhp\ScssPhp\Value\SassString}, or a {@see \ScssPhp\ScssPhp\Value\CalculationOperation}.
This automatically simplifies the calculation, so it may return a {@see \ScssPhp\ScssPhp\Value\SassNumber} rather than a {@see \ScssPhp\ScssPhp\Value\SassCalculation}. It throws an exception if it can determine that the calculation will definitely produce invalid CSS.
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
object
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
\ScssPhp\ScssPhp\Value\Value
toCssString(boolquote = true) : string
Use {@see \ScssPhp\ScssPhp\Value\toString} instead to get a string representation even if this isn't valid CSS.
Internal-only: If $quote is false, quoted strings are emitted without
quotes.
| Throws |
|
|---|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
bool
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
string
tryMap() : ?\ScssPhp\ScssPhp\Value\SassMap
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
?\ScssPhp\ScssPhp\Value\SassMap
unaryMinus() : \ScssPhp\ScssPhp\Value\Value
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
\ScssPhp\ScssPhp\Value\Value
unaryPlus() : \ScssPhp\ScssPhp\Value\Value
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
\ScssPhp\ScssPhp\Value\Value
verifyCompatibleNumbers(list<object>args) : void
| Throws |
|
|---|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
list
verifyLength(list<object>args, intexpectedLength) : void
| Throws |
|
|---|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
list
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
int
withListContents(list<\ScssPhp\ScssPhp\Value\Value>contents, ?\ScssPhp\ScssPhp\Value\ListSeparatorseparator = null, ?boolbrackets = null) : \ScssPhp\ScssPhp\Value\SassList
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
list<\ScssPhp\ScssPhp\Value\Value>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
?\ScssPhp\ScssPhp\Value\ListSeparator
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
?bool
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
\ScssPhp\ScssPhp\Value\SassList
name : string
string
arguments : list<object>
Each argument is either a {@see \ScssPhp\ScssPhp\Value\SassNumber}, a {@see \ScssPhp\ScssPhp\Value\SassCalculation}, an unquoted {@see \ScssPhp\ScssPhp\Value\SassString}, or a {@see \ScssPhp\ScssPhp\Value\CalculationOperation}.
| var | |
|---|---|
array<int, object>