SassCalculation

Extends Value

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

Methods

An internal constructor that doesn't perform any validation or simplification.

__construct(stringname, list<object>arguments) : mixed

Arguments

name

Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 string

arguments

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 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Response

Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 mixed

Returns a Sass representation of $this.

__toString() : string
inherited final

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 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Response

Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 string

Creates an `abs()` calculation with the given $argument.

abs(objectargument) : \ScssPhp\ScssPhp\Value\Value
static

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.

Arguments

argument

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 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Response

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

accept(\ScssPhp\ScssPhp\Visitor\ValueVisitorvisitor) : mixed

Arguments

visitor

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 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Response

Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 mixed

Creates an `acos()` calculation with the given $argument.

acos(objectargument) : \ScssPhp\ScssPhp\Value\Value
static

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.

Arguments

argument

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 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Response

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

Creates an `asin()` calculation with the given $argument.

asin(objectargument) : \ScssPhp\ScssPhp\Value\Value
static

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.

Arguments

argument

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 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Response

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

This value as a list.

asList() : list<\ScssPhp\ScssPhp\Value\Value>
inherited

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 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Response

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>

Throws a {@see SassScriptException} if $this isn't a boolean.

assertBoolean(?stringname = null) : \ScssPhp\ScssPhp\Value\SassBoolean
inherited

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 \ScssPhp\ScssPhp\Exception\SassScriptException

Arguments

name

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 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Response

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

Throws a {@see SassScriptException} if $this isn't a calculation.

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.

Arguments

name

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 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Response

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

Throws a {@see SassScriptException} if $this isn't a color.

assertColor(?stringname = null) : \ScssPhp\ScssPhp\Value\SassColor
inherited

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 \ScssPhp\ScssPhp\Exception\SassScriptException

Arguments

name

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 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Response

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

Throws a {@see SassScriptException} if $this isn't a string.

assertFunction(?stringname = null) : \ScssPhp\ScssPhp\Value\SassFunction
inherited

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 \ScssPhp\ScssPhp\Exception\SassScriptException

Arguments

name

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 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Response

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

Throws a {@see SassScriptException} if $this isn't a map.

assertMap(?stringname = null) : \ScssPhp\ScssPhp\Value\SassMap
inherited

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 \ScssPhp\ScssPhp\Exception\SassScriptException

Arguments

name

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 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Response

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

Throws a {@see SassScriptException} if $this isn't a number.

assertNumber(?stringname = null) : \ScssPhp\ScssPhp\Value\SassNumber
inherited

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 \ScssPhp\ScssPhp\Exception\SassScriptException

Arguments

name

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 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Response

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

Throws a {@see SassScriptException} if $this isn't a string.

assertString(?stringname = null) : \ScssPhp\ScssPhp\Value\SassString
inherited

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 \ScssPhp\ScssPhp\Exception\SassScriptException

Arguments

name

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 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Response

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

Creates an `atan()` calculation with the given $argument.

atan(objectargument) : \ScssPhp\ScssPhp\Value\Value
static

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.

Arguments

argument

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 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Response

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

Creates a `atan2()` calculation for $y and $x.

atan2(objecty, ?objectx) : \ScssPhp\ScssPhp\Value\Value
static

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.

Arguments

y

Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 object

x

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 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Response

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

Creates a `calc()` calculation with the given $argument.

calc(objectargument) : \ScssPhp\ScssPhp\Value\Value
static

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 \ScssPhp\ScssPhp\Exception\SassScriptException

Arguments

argument

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 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Response

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

Returns whether $character intrinsically needs parentheses if it appears in the unquoted string argument of a `calc()` being embedded in another calculation.

charNeedsParentheses(stringcharacter) : bool
static

Arguments

character

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 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Response

Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 bool

Creates a `clamp()` calculation with the given $min, $value, and $max.

clamp(objectmin, ?objectvalue = null, ?objectmax = null) : \ScssPhp\ScssPhp\Value\Value
static

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 \ScssPhp\ScssPhp\Exception\SassScriptException

Arguments

min

Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 object

value

Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 ?object

max

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 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Response

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

Creates a `cos()` calculation with the given $argument.

cos(objectargument) : \ScssPhp\ScssPhp\Value\Value
static

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.

Arguments

argument

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 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Response

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

equals(objectother) : bool

Arguments

other

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 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Response

Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 bool

Creates an `exp()` calculation with the given $argument.

exp(objectargument) : \ScssPhp\ScssPhp\Value\Value
static

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.

Arguments

argument

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 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Response

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

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 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Response

Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 list

The length of {@see asList}.

getLengthAsList() : int
inherited

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 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Response

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

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 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Response

Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 string

The separator for this value as a list.

getSeparator() : \ScssPhp\ScssPhp\Value\ListSeparator
inherited

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 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Response

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

Whether this value as a list has brackets.

hasBrackets() : bool
inherited

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 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Response

Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 bool

Creates a `hypot()` calculation with the given $arguments.

hypot(list<object>arguments) : \ScssPhp\ScssPhp\Value\Value
static

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.

Arguments

arguments

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 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Response

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

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 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Response

Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 bool

Whether the value counts as `true` in an `@if` statement and other contexts

isTruthy() : bool
inherited
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Response

Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 bool

Creates a `log()` calculation with the given $number and $base.

log(objectnumber, ?objectbase) : \ScssPhp\ScssPhp\Value\Value
static

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.

Arguments

number

Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 object

base

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 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Response

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

Returns $value coerced to $number's units.

matchUnits(floatvalue, \ScssPhp\ScssPhp\Value\SassNumbernumber) : \ScssPhp\ScssPhp\Value\SassNumber
static

Arguments

value

Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 float

number

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 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Response

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

Creates a `max()` calculation with the given $arguments.

max(list<object>arguments) : \ScssPhp\ScssPhp\Value\Value
static

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 \ScssPhp\ScssPhp\Exception\SassScriptException

Arguments

arguments

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 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Response

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

Creates a `min()` calculation with the given $arguments.

min(list<object>arguments) : \ScssPhp\ScssPhp\Value\Value
static

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 \ScssPhp\ScssPhp\Exception\SassScriptException

Arguments

arguments

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 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Response

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

minus(\ScssPhp\ScssPhp\Value\Valueother) : \ScssPhp\ScssPhp\Value\Value

Arguments

other

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 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Response

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

Creates a `mod()` calculation with the given $dividend and $modulus.

mod(objectdividend, ?objectmodulus) : \ScssPhp\ScssPhp\Value\Value
static

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.

Arguments

dividend

Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 object

modulus

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 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Response

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

Returns whether $text needs parentheses if it's the contents of a `calc()` being embedded in another calculation.

needsParentheses(stringtext) : bool
static

Arguments

text

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 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Response

Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 bool

Creates and simplifies a {@see CalculationOperation} with the given $operator, $left, and $right.

operate(\ScssPhp\ScssPhp\Value\CalculationOperatoroperator, objectleft, objectright) : object
static

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\Exception\SassScriptException

Arguments

operator

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

left

Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 object

right

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 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Response

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

plus(\ScssPhp\ScssPhp\Value\Valueother) : \ScssPhp\ScssPhp\Value\Value

Arguments

other

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 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Response

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

Creates a `pow()` calculation with the given $base and $exponent.

pow(objectbase, ?objectexponent) : \ScssPhp\ScssPhp\Value\Value
static

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.

Arguments

base

Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 object

exponent

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 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Response

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

Creates a `rem()` calculation with the given $dividend and $modulus.

rem(objectdividend, ?objectmodulus) : \ScssPhp\ScssPhp\Value\Value
static

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.

Arguments

dividend

Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 object

modulus

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 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Response

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

Creates a `round()` calculation with the given $strategyOrNumber, $numberOrStep, and $step. Strategy must be either nearest, up, down or to-zero.

round(objectstrategyOrNumber, ?objectnumberOrStep = null, ?objectstep = null) : \ScssPhp\ScssPhp\Value\Value
static

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.

Arguments

strategyOrNumber

Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 object

numberOrStep

Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 ?object

step

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 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Response

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

Returns a rounded $number based on a selected rounding $strategy, to the nearest integer multiple of $step.

roundWithStep(stringstrategy, \ScssPhp\ScssPhp\Value\SassNumbernumber, \ScssPhp\ScssPhp\Value\SassNumberstep) : \ScssPhp\ScssPhp\Value\SassNumber
static

Arguments

strategy

Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 string

number

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

step

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 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Response

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

Converts $sassIndex into a PHP-style index into the list returned by {@see asList}.

sassIndexToListIndex(\ScssPhp\ScssPhp\Value\ValuesassIndex, ?stringname = null) : int
inherited

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\Exception\SassScriptException

if $sassIndex isn't a number, if that number isn't an integer, or if that integer isn't a valid index for {@see \ScssPhp\ScssPhp\Value\asList}. If $sassIndex came from a function argument, $name is the argument name (without the $). It's used for error reporting.

Arguments

sassIndex

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

name

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 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Response

Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 int

Converts a `selector-parse()`-style input into a string that can be parsed.

selectorString(?stringname) : string
inherited
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\Exception\SassScriptException

if $this isn't a type or a structure that can be parsed as a selector.

Arguments

name

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 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Response

Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 string

Converts a `selector-parse()`-style input into a string that can be parsed.

selectorStringOrNull() : ?string
inherited

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 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Response

Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 ?string

Creates a `sign()` calculation with the given $argument.

sign(objectargument) : \ScssPhp\ScssPhp\Value\Value
static

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.

Arguments

argument

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 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Response

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

simplify(objectarg) : \ScssPhp\ScssPhp\Value\SassNumber|\ScssPhp\ScssPhp\Value\CalculationOperation|\ScssPhp\ScssPhp\Value\SassString|\ScssPhp\ScssPhp\Value\SassCalculation
static
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\Exception\SassScriptException

Arguments

arg

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 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Response

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

simplifyArguments(list<object>args) : list<object>
static
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\Exception\SassScriptException

Arguments

args

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 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Response

Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 list

Creates a `sin()` calculation with the given $argument.

sin(objectargument) : \ScssPhp\ScssPhp\Value\Value
static

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.

Arguments

argument

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 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Response

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

singleArgument(stringname, objectargument, callablemathFunc, boolforbidUnits = false) : \ScssPhp\ScssPhp\Value\Value
static

Arguments

name

Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 string

argument

Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 object

mathFunc

Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 callable

forbidUnits

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 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Response

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

Creates a `sqrt()` calculation with the given $argument.

sqrt(objectargument) : \ScssPhp\ScssPhp\Value\Value
static

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.

Arguments

argument

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 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Response

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

Creates a `tan()` calculation with the given $argument.

tan(objectargument) : \ScssPhp\ScssPhp\Value\Value
static

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.

Arguments

argument

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 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Response

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

Returns a valid CSS representation of $this.

toCssString(boolquote = true) : string
inherited final

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 \ScssPhp\ScssPhp\Exception\SassScriptException

if $this cannot be represented in plain CSS.

Arguments

quote

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 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Response

Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 string

Return $this as a SassMap if it is one (including empty lists) or null otherwise.

tryMap() : ?\ScssPhp\ScssPhp\Value\SassMap
inherited
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Response

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

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 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Response

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

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 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Response

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

Verifies that all the numbers in $args aren't known to be incompatible with one another, and that they don't have units that are too complex for calculations.

verifyCompatibleNumbers(list<object>args) : void
static
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\Exception\SassScriptException

Arguments

args

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 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Throws a {@see SassScriptException} if $args isn't $expectedLength *and* doesn't contain either a {@see SassString}.

verifyLength(list<object>args, intexpectedLength) : void
static
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\Exception\SassScriptException

Arguments

args

Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 list

expectedLength

Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 int

Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Returns a new list containing $contents that defaults to this value's separator and brackets.

withListContents(list<\ScssPhp\ScssPhp\Value\Value>contents, ?\ScssPhp\ScssPhp\Value\ListSeparatorseparator = null, ?boolbrackets = null) : \ScssPhp\ScssPhp\Value\SassList
inherited

Arguments

contents

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>

separator

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

brackets

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 Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50

Response

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

Properties

The calculation's name, such as `"calc"`.

name : string

Type(s)

string

The calculation's arguments.

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

Type(s)

array<int, object>