4235 lines
295 KiB
HTML
4235 lines
295 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
|
|
<meta charset="utf-8"/>
|
|
<title> SYSTEM - PHP Framework » \ScssPhp\ScssPhp\Value\SassCalculation
|
|
</title>
|
|
<meta name="author" content=""/>
|
|
<meta name="description" content=""/>
|
|
<base href="../">
|
|
|
|
<link href="css/template.css" rel="stylesheet" media="all"/>
|
|
|
|
<!--[if lt IE 9]>
|
|
<script src="https://html5shim.googlecode.com/svn/trunk/html5.js" type="text/javascript"></script>
|
|
<![endif]-->
|
|
<script src="js/jquery-1.7.1.min.js" type="text/javascript"></script>
|
|
<script src="js/jquery-ui-1.8.2.custom.min.js" type="text/javascript"></script>
|
|
<script src="js/jquery.mousewheel.min.js" type="text/javascript"></script>
|
|
<script src="js/bootstrap.js" type="text/javascript"></script>
|
|
<script src="js/template.js" type="text/javascript"></script>
|
|
<script src="js/prettify/prettify.min.js" type="text/javascript"></script>
|
|
|
|
<link rel="shortcut icon" href="img/favicon.ico"/>
|
|
<link rel="apple-touch-icon" href="img/apple-touch-icon.png"/>
|
|
<link rel="apple-touch-icon" sizes="72x72" href="img/apple-touch-icon-72x72.png"/>
|
|
<link rel="apple-touch-icon" sizes="114x114" href="img/apple-touch-icon-114x114.png"/>
|
|
</head>
|
|
<body>
|
|
|
|
<div class="navbar navbar-fixed-top">
|
|
<div class="navbar-inner">
|
|
<div class="container">
|
|
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
|
|
<span class="icon-bar"></span> <span class="icon-bar"></span>
|
|
<span class="icon-bar"></span> </a>
|
|
<a class="brand" href="index.html">SYSTEM - PHP Framework</a>
|
|
|
|
<div class="nav-collapse">
|
|
<ul class="nav">
|
|
<li class="dropdown">
|
|
<a href="#api" class="dropdown-toggle" data-toggle="dropdown">
|
|
API Documentation <b class="caret"></b>
|
|
</a>
|
|
<ul class="dropdown-menu">
|
|
<li><a>Namespaces</a></li>
|
|
<li><a href="\LIB">LIB</a></li>
|
|
<li><a href="\GIT">GIT</a></li>
|
|
<li><a href="\vakata">vakata</a></li>
|
|
<li><a href="\Michelf">Michelf</a></li>
|
|
<li><a href="\MatthiasMullie">MatthiasMullie</a></li>
|
|
<li><a href="\PHPDocMD">PHPDocMD</a></li>
|
|
<li><a href="\ScssPhp">ScssPhp</a></li>
|
|
<li><a href="\SYSTEM">SYSTEM</a></li>
|
|
</ul>
|
|
</li>
|
|
<li class="dropdown" id="charts-menu">
|
|
<a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
|
|
Charts <b class="caret"></b>
|
|
</a>
|
|
<ul class="dropdown-menu">
|
|
<li>
|
|
<a href="graph_class.html">
|
|
<i class="icon-list-alt"></i> Class hierarchy diagram
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li class="dropdown" id="reports-menu">
|
|
<a href="#reports" class="dropdown-toggle" data-toggle="dropdown">
|
|
Reports <b class="caret"></b>
|
|
</a>
|
|
<ul class="dropdown-menu">
|
|
<li>
|
|
<a href="errors.html">
|
|
<i class="icon-list-alt"></i> Errors
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="markers.html">
|
|
<i class="icon-list-alt"></i> Markers
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="deprecated.html">
|
|
<i class="icon-list-alt"></i> Deprecated
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="go_to_top">
|
|
<a href="#___" style="color: inherit">Back to top  <i class="icon-upload icon-white"></i></a>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="___" class="container">
|
|
<noscript>
|
|
<div class="alert alert-warning">
|
|
Javascript is disabled; several features are only available if Javascript is enabled.
|
|
</div>
|
|
</noscript>
|
|
|
|
|
|
<style>
|
|
.deprecated h2 {
|
|
text-decoration: line-through;
|
|
}
|
|
</style>
|
|
<div class="row">
|
|
<div class="span4">
|
|
<div class="btn-group view pull-right" data-toggle="buttons-radio">
|
|
<button class="btn details" title="Show descriptions and method names"><i class="icon-list"></i></button>
|
|
<button class="btn simple" title="Show only method names"><i class="icon-align-justify"></i></button>
|
|
</div>
|
|
<div class="btn-group visibility" data-toggle="buttons-checkbox">
|
|
<button class="btn public active" title="Show public elements">Public</button>
|
|
<button class="btn protected" title="Show protected elements">Protected</button>
|
|
<button class="btn private" title="Show private elements">Private</button>
|
|
<button class="btn inherited active" title="Show inherited elements">Inherited</button>
|
|
</div>
|
|
|
|
<ul class="side-nav nav nav-list">
|
|
<li class="nav-header">
|
|
<i class="icon-custom icon-method"></i> Methods
|
|
<ul>
|
|
<li class="method public inherited">
|
|
<a href="#method___toString" title="__toString :: Returns a Sass representation of $this.">
|
|
<span class="description">Returns a Sass representation of $this.</span><pre>__toString</pre>
|
|
</a>
|
|
</li>
|
|
|
|
<li class="method public">
|
|
<a href="#method_abs" title="abs :: Creates an `abs()` calculation with the given $argument.">
|
|
<span class="description">Creates an `abs()` calculation with the given $argument.</span><pre>abs</pre>
|
|
</a>
|
|
</li>
|
|
|
|
<li class="method public">
|
|
<a href="#method_accept" title="accept :: ">
|
|
<span class="description"></span><pre>accept</pre>
|
|
</a>
|
|
</li>
|
|
|
|
<li class="method public">
|
|
<a href="#method_acos" title="acos :: Creates an `acos()` calculation with the given $argument.">
|
|
<span class="description">Creates an `acos()` calculation with the given $argument.</span><pre>acos</pre>
|
|
</a>
|
|
</li>
|
|
|
|
<li class="method public">
|
|
<a href="#method_asin" title="asin :: Creates an `asin()` calculation with the given $argument.">
|
|
<span class="description">Creates an `asin()` calculation with the given $argument.</span><pre>asin</pre>
|
|
</a>
|
|
</li>
|
|
|
|
<li class="method public inherited">
|
|
<a href="#method_asList" title="asList :: This value as a list.">
|
|
<span class="description">This value as a list.</span><pre>asList</pre>
|
|
</a>
|
|
</li>
|
|
|
|
<li class="method public inherited">
|
|
<a href="#method_assertBoolean" title="assertBoolean :: Throws a {@see SassScriptException} if $this isn't a boolean.">
|
|
<span class="description">Throws a {@see SassScriptException} if $this isn't a boolean.</span><pre>assertBoolean</pre>
|
|
</a>
|
|
</li>
|
|
|
|
<li class="method public">
|
|
<a href="#method_assertCalculation" title="assertCalculation :: Throws a {@see SassScriptException} if $this isn't a calculation.">
|
|
<span class="description">Throws a {@see SassScriptException} if $this isn't a calculation.</span><pre>assertCalculation</pre>
|
|
</a>
|
|
</li>
|
|
|
|
<li class="method public inherited">
|
|
<a href="#method_assertColor" title="assertColor :: Throws a {@see SassScriptException} if $this isn't a color.">
|
|
<span class="description">Throws a {@see SassScriptException} if $this isn't a color.</span><pre>assertColor</pre>
|
|
</a>
|
|
</li>
|
|
|
|
<li class="method public inherited">
|
|
<a href="#method_assertFunction" title="assertFunction :: Throws a {@see SassScriptException} if $this isn't a string.">
|
|
<span class="description">Throws a {@see SassScriptException} if $this isn't a string.</span><pre>assertFunction</pre>
|
|
</a>
|
|
</li>
|
|
|
|
<li class="method public inherited">
|
|
<a href="#method_assertMap" title="assertMap :: Throws a {@see SassScriptException} if $this isn't a map.">
|
|
<span class="description">Throws a {@see SassScriptException} if $this isn't a map.</span><pre>assertMap</pre>
|
|
</a>
|
|
</li>
|
|
|
|
<li class="method public inherited">
|
|
<a href="#method_assertNumber" title="assertNumber :: Throws a {@see SassScriptException} if $this isn't a number.">
|
|
<span class="description">Throws a {@see SassScriptException} if $this isn't a number.</span><pre>assertNumber</pre>
|
|
</a>
|
|
</li>
|
|
|
|
<li class="method public inherited">
|
|
<a href="#method_assertString" title="assertString :: Throws a {@see SassScriptException} if $this isn't a string.">
|
|
<span class="description">Throws a {@see SassScriptException} if $this isn't a string.</span><pre>assertString</pre>
|
|
</a>
|
|
</li>
|
|
|
|
<li class="method public">
|
|
<a href="#method_atan" title="atan :: Creates an `atan()` calculation with the given $argument.">
|
|
<span class="description">Creates an `atan()` calculation with the given $argument.</span><pre>atan</pre>
|
|
</a>
|
|
</li>
|
|
|
|
<li class="method public">
|
|
<a href="#method_atan2" title="atan2 :: Creates a `atan2()` calculation for $y and $x.">
|
|
<span class="description">Creates a `atan2()` calculation for $y and $x.</span><pre>atan2</pre>
|
|
</a>
|
|
</li>
|
|
|
|
<li class="method public">
|
|
<a href="#method_calc" title="calc :: Creates a `calc()` calculation with the given $argument.">
|
|
<span class="description">Creates a `calc()` calculation with the given $argument.</span><pre>calc</pre>
|
|
</a>
|
|
</li>
|
|
|
|
<li class="method public">
|
|
<a href="#method_clamp" title="clamp :: Creates a `clamp()` calculation with the given $min, $value, and $max.">
|
|
<span class="description">Creates a `clamp()` calculation with the given $min, $value, and $max.</span><pre>clamp</pre>
|
|
</a>
|
|
</li>
|
|
|
|
<li class="method public">
|
|
<a href="#method_cos" title="cos :: Creates a `cos()` calculation with the given $argument.">
|
|
<span class="description">Creates a `cos()` calculation with the given $argument.</span><pre>cos</pre>
|
|
</a>
|
|
</li>
|
|
|
|
<li class="method public">
|
|
<a href="#method_equals" title="equals :: ">
|
|
<span class="description"></span><pre>equals</pre>
|
|
</a>
|
|
</li>
|
|
|
|
<li class="method public">
|
|
<a href="#method_exp" title="exp :: Creates an `exp()` calculation with the given $argument.">
|
|
<span class="description">Creates an `exp()` calculation with the given $argument.</span><pre>exp</pre>
|
|
</a>
|
|
</li>
|
|
|
|
<li class="method public">
|
|
<a href="#method_getArguments" title="getArguments :: ">
|
|
<span class="description"></span><pre>getArguments</pre>
|
|
</a>
|
|
</li>
|
|
|
|
<li class="method public">
|
|
<a href="#method_getName" title="getName :: ">
|
|
<span class="description"></span><pre>getName</pre>
|
|
</a>
|
|
</li>
|
|
|
|
<li class="method public inherited">
|
|
<a href="#method_getSeparator" title="getSeparator :: The separator for this value as a list.">
|
|
<span class="description">The separator for this value as a list.</span><pre>getSeparator</pre>
|
|
</a>
|
|
</li>
|
|
|
|
<li class="method public inherited">
|
|
<a href="#method_hasBrackets" title="hasBrackets :: Whether this value as a list has brackets.">
|
|
<span class="description">Whether this value as a list has brackets.</span><pre>hasBrackets</pre>
|
|
</a>
|
|
</li>
|
|
|
|
<li class="method public">
|
|
<a href="#method_hypot" title="hypot :: Creates a `hypot()` calculation with the given $arguments.">
|
|
<span class="description">Creates a `hypot()` calculation with the given $arguments.</span><pre>hypot</pre>
|
|
</a>
|
|
</li>
|
|
|
|
<li class="method public">
|
|
<a href="#method_isSpecialNumber" title="isSpecialNumber :: ">
|
|
<span class="description"></span><pre>isSpecialNumber</pre>
|
|
</a>
|
|
</li>
|
|
|
|
<li class="method public inherited">
|
|
<a href="#method_isTruthy" title="isTruthy :: Whether the value counts as `true` in an `@if` statement and other contexts">
|
|
<span class="description">Whether the value counts as `true` in an `@if` statement and other contexts</span><pre>isTruthy</pre>
|
|
</a>
|
|
</li>
|
|
|
|
<li class="method public">
|
|
<a href="#method_log" title="log :: Creates a `log()` calculation with the given $number and $base.">
|
|
<span class="description">Creates a `log()` calculation with the given $number and $base.</span><pre>log</pre>
|
|
</a>
|
|
</li>
|
|
|
|
<li class="method public">
|
|
<a href="#method_max" title="max :: Creates a `max()` calculation with the given $arguments.">
|
|
<span class="description">Creates a `max()` calculation with the given $arguments.</span><pre>max</pre>
|
|
</a>
|
|
</li>
|
|
|
|
<li class="method public">
|
|
<a href="#method_min" title="min :: Creates a `min()` calculation with the given $arguments.">
|
|
<span class="description">Creates a `min()` calculation with the given $arguments.</span><pre>min</pre>
|
|
</a>
|
|
</li>
|
|
|
|
<li class="method public">
|
|
<a href="#method_minus" title="minus :: ">
|
|
<span class="description"></span><pre>minus</pre>
|
|
</a>
|
|
</li>
|
|
|
|
<li class="method public">
|
|
<a href="#method_mod" title="mod :: Creates a `mod()` calculation with the given $dividend and $modulus.">
|
|
<span class="description">Creates a `mod()` calculation with the given $dividend and $modulus.</span><pre>mod</pre>
|
|
</a>
|
|
</li>
|
|
|
|
<li class="method public">
|
|
<a href="#method_operate" title="operate :: Creates and simplifies a {@see CalculationOperation} with the given $operator,
|
|
$left, and $right.">
|
|
<span class="description">Creates and simplifies a {@see CalculationOperation} with the given $operator,
|
|
$left, and $right.</span><pre>operate</pre>
|
|
</a>
|
|
</li>
|
|
|
|
<li class="method public">
|
|
<a href="#method_plus" title="plus :: ">
|
|
<span class="description"></span><pre>plus</pre>
|
|
</a>
|
|
</li>
|
|
|
|
<li class="method public">
|
|
<a href="#method_pow" title="pow :: Creates a `pow()` calculation with the given $base and $exponent.">
|
|
<span class="description">Creates a `pow()` calculation with the given $base and $exponent.</span><pre>pow</pre>
|
|
</a>
|
|
</li>
|
|
|
|
<li class="method public">
|
|
<a href="#method_rem" title="rem :: Creates a `rem()` calculation with the given $dividend and $modulus.">
|
|
<span class="description">Creates a `rem()` calculation with the given $dividend and $modulus.</span><pre>rem</pre>
|
|
</a>
|
|
</li>
|
|
|
|
<li class="method public">
|
|
<a href="#method_round" title="round :: Creates a `round()` calculation with the given $strategyOrNumber,
|
|
$numberOrStep, and $step. Strategy must be either nearest, up, down or
|
|
to-zero.">
|
|
<span class="description">Creates a `round()` calculation with the given $strategyOrNumber,
|
|
$numberOrStep, and $step. Strategy must be either nearest, up, down or
|
|
to-zero.</span><pre>round</pre>
|
|
</a>
|
|
</li>
|
|
|
|
<li class="method public inherited">
|
|
<a href="#method_sassIndexToListIndex" title="sassIndexToListIndex :: Converts $sassIndex into a PHP-style index into the list returned by
|
|
{@see asList}.">
|
|
<span class="description">Converts $sassIndex into a PHP-style index into the list returned by
|
|
{@see asList}.</span><pre>sassIndexToListIndex</pre>
|
|
</a>
|
|
</li>
|
|
|
|
<li class="method public">
|
|
<a href="#method_sign" title="sign :: Creates a `sign()` calculation with the given $argument.">
|
|
<span class="description">Creates a `sign()` calculation with the given $argument.</span><pre>sign</pre>
|
|
</a>
|
|
</li>
|
|
|
|
<li class="method public">
|
|
<a href="#method_sin" title="sin :: Creates a `sin()` calculation with the given $argument.">
|
|
<span class="description">Creates a `sin()` calculation with the given $argument.</span><pre>sin</pre>
|
|
</a>
|
|
</li>
|
|
|
|
<li class="method public">
|
|
<a href="#method_sqrt" title="sqrt :: Creates a `sqrt()` calculation with the given $argument.">
|
|
<span class="description">Creates a `sqrt()` calculation with the given $argument.</span><pre>sqrt</pre>
|
|
</a>
|
|
</li>
|
|
|
|
<li class="method public">
|
|
<a href="#method_tan" title="tan :: Creates a `tan()` calculation with the given $argument.">
|
|
<span class="description">Creates a `tan()` calculation with the given $argument.</span><pre>tan</pre>
|
|
</a>
|
|
</li>
|
|
|
|
<li class="method public inherited">
|
|
<a href="#method_toCssString" title="toCssString :: Returns a valid CSS representation of $this.">
|
|
<span class="description">Returns a valid CSS representation of $this.</span><pre>toCssString</pre>
|
|
</a>
|
|
</li>
|
|
|
|
<li class="method public inherited">
|
|
<a href="#method_tryMap" title="tryMap :: Return $this as a SassMap if it is one (including empty lists) or null otherwise.">
|
|
<span class="description">Return $this as a SassMap if it is one (including empty lists) or null otherwise.</span><pre>tryMap</pre>
|
|
</a>
|
|
</li>
|
|
|
|
<li class="method public">
|
|
<a href="#method_unaryMinus" title="unaryMinus :: ">
|
|
<span class="description"></span><pre>unaryMinus</pre>
|
|
</a>
|
|
</li>
|
|
|
|
<li class="method public">
|
|
<a href="#method_unaryPlus" title="unaryPlus :: ">
|
|
<span class="description"></span><pre>unaryPlus</pre>
|
|
</a>
|
|
</li>
|
|
|
|
<li class="method public inherited">
|
|
<a href="#method_withListContents" title="withListContents :: Returns a new list containing $contents that defaults to this value's
|
|
separator and brackets.">
|
|
<span class="description">Returns a new list containing $contents that defaults to this value's
|
|
separator and brackets.</span><pre>withListContents</pre>
|
|
</a>
|
|
</li>
|
|
|
|
</ul>
|
|
</li>
|
|
<li class="nav-header protected">» Protected
|
|
<ul>
|
|
<li class="method protected inherited">
|
|
<a href="#method_getLengthAsList" title="getLengthAsList :: The length of {@see asList}.">
|
|
<span class="description">The length of {@see asList}.</span><pre>getLengthAsList</pre>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li class="nav-header private">» Private
|
|
<ul>
|
|
<li class="method private">
|
|
<a href="#method___construct" title="__construct :: An internal constructor that doesn't perform any validation or
|
|
simplification.">
|
|
<span class="description">An internal constructor that doesn't perform any validation or
|
|
simplification.</span><pre>__construct</pre>
|
|
</a>
|
|
</li>
|
|
<li class="method private">
|
|
<a href="#method_charNeedsParentheses" title="charNeedsParentheses :: Returns whether $character intrinsically needs parentheses if it appears
|
|
in the unquoted string argument of a `calc()` being embedded in another
|
|
calculation.">
|
|
<span class="description">Returns whether $character intrinsically needs parentheses if it appears
|
|
in the unquoted string argument of a `calc()` being embedded in another
|
|
calculation.</span><pre>charNeedsParentheses</pre>
|
|
</a>
|
|
</li>
|
|
<li class="method private">
|
|
<a href="#method_matchUnits" title="matchUnits :: Returns $value coerced to $number's units.">
|
|
<span class="description">Returns $value coerced to $number's units.</span><pre>matchUnits</pre>
|
|
</a>
|
|
</li>
|
|
<li class="method private">
|
|
<a href="#method_needsParentheses" title="needsParentheses :: Returns whether $text needs parentheses if it's the contents of a
|
|
`calc()` being embedded in another calculation.">
|
|
<span class="description">Returns whether $text needs parentheses if it's the contents of a
|
|
`calc()` being embedded in another calculation.</span><pre>needsParentheses</pre>
|
|
</a>
|
|
</li>
|
|
<li class="method private">
|
|
<a href="#method_roundWithStep" title="roundWithStep :: Returns a rounded $number based on a selected rounding $strategy,
|
|
to the nearest integer multiple of $step.">
|
|
<span class="description">Returns a rounded $number based on a selected rounding $strategy,
|
|
to the nearest integer multiple of $step.</span><pre>roundWithStep</pre>
|
|
</a>
|
|
</li>
|
|
<li class="method private inherited">
|
|
<a href="#method_selectorString" title="selectorString :: Converts a `selector-parse()`-style input into a string that can be
|
|
parsed.">
|
|
<span class="description">Converts a `selector-parse()`-style input into a string that can be
|
|
parsed.</span><pre>selectorString</pre>
|
|
</a>
|
|
</li>
|
|
<li class="method private inherited">
|
|
<a href="#method_selectorStringOrNull" title="selectorStringOrNull :: Converts a `selector-parse()`-style input into a string that can be
|
|
parsed.">
|
|
<span class="description">Converts a `selector-parse()`-style input into a string that can be
|
|
parsed.</span><pre>selectorStringOrNull</pre>
|
|
</a>
|
|
</li>
|
|
<li class="method private">
|
|
<a href="#method_simplify" title="simplify :: ">
|
|
<span class="description"></span><pre>simplify</pre>
|
|
</a>
|
|
</li>
|
|
<li class="method private">
|
|
<a href="#method_simplifyArguments" title="simplifyArguments :: ">
|
|
<span class="description"></span><pre>simplifyArguments</pre>
|
|
</a>
|
|
</li>
|
|
<li class="method private">
|
|
<a href="#method_singleArgument" title="singleArgument :: ">
|
|
<span class="description"></span><pre>singleArgument</pre>
|
|
</a>
|
|
</li>
|
|
<li class="method private">
|
|
<a href="#method_verifyCompatibleNumbers" title="verifyCompatibleNumbers :: 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.">
|
|
<span class="description">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.</span><pre>verifyCompatibleNumbers</pre>
|
|
</a>
|
|
</li>
|
|
<li class="method private">
|
|
<a href="#method_verifyLength" title="verifyLength :: Throws a {@see SassScriptException} if $args isn't $expectedLength *and*
|
|
doesn't contain either a {@see SassString}.">
|
|
<span class="description">Throws a {@see SassScriptException} if $args isn't $expectedLength *and*
|
|
doesn't contain either a {@see SassString}.</span><pre>verifyLength</pre>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li class="nav-header">
|
|
<i class="icon-custom icon-constant"></i> Constants
|
|
<ul>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
|
|
|
|
</div>
|
|
|
|
<div class="span8">
|
|
<div class="element class">
|
|
<h1>SassCalculation</h1>
|
|
<small style="display: block; text-align: right">
|
|
Extends <a href="classes/ScssPhp-ScssPhp-Value-Value.html"><abbr title="\ScssPhp\ScssPhp\Value\Value">Value</abbr></a>
|
|
</small>
|
|
<p class="short_description">A SassScript calculation.</p>
|
|
<div class="details">
|
|
<div class="long_description">
|
|
<p>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.</p>
|
|
|
|
</div>
|
|
<table class="table table-bordered">
|
|
<tr>
|
|
<th>
|
|
package
|
|
</th>
|
|
<td>
|
|
|
|
<p>Application</p>
|
|
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h3><i class="icon-custom icon-method"></i> Methods</h3>
|
|
<a id="method___construct"></a>
|
|
<div class="element clickable method private method___construct" data-toggle="collapse" data-target=".method___construct .collapse">
|
|
<h2>An internal constructor that doesn't perform any validation or
|
|
simplification.</h2>
|
|
<pre>__construct(stringname, list<object>arguments) : mixed</pre>
|
|
<div class="labels">
|
|
</div>
|
|
|
|
|
|
<div class="row collapse">
|
|
<div class="detail-description">
|
|
<div class="long_description"></div>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h3>Arguments</h3>
|
|
<div class="subelement argument">
|
|
<h4>name</h4>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
string</code><p></p>
|
|
</div>
|
|
<div class="subelement argument">
|
|
<h4>arguments</h4>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
list<object></code><p></p>
|
|
</div>
|
|
|
|
|
|
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
|
|
<h3>Response</h3>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
mixed</code><p></p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<a id="method___toString"></a>
|
|
<div class="element clickable method public method___toString inherited" data-toggle="collapse" data-target=".method___toString .collapse">
|
|
<h2>Returns a Sass representation of $this.</h2>
|
|
<pre>__toString() : string</pre>
|
|
<div class="labels">
|
|
<span class="label">inherited</span> <span class="label">final</span> </div>
|
|
|
|
|
|
<div class="row collapse">
|
|
<div class="detail-description">
|
|
<div class="long_description"><p>Note that this is equivalent to calling <code class="prettyprint">inspect()</code> 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.</p>
|
|
</div>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
|
|
|
|
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
|
|
<h3>Response</h3>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
string</code><p></p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<a id="method_abs"></a>
|
|
<div class="element clickable method public method_abs" data-toggle="collapse" data-target=".method_abs .collapse">
|
|
<h2>Creates an `abs()` calculation with the given $argument.</h2>
|
|
<pre>abs(objectargument) : \ScssPhp\ScssPhp\Value\Value</pre>
|
|
<div class="labels">
|
|
<span class="label">static</span> </div>
|
|
|
|
|
|
<div class="row collapse">
|
|
<div class="detail-description">
|
|
<div class="long_description"><p>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}.</p>
|
|
<p>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.</p>
|
|
</div>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h3>Arguments</h3>
|
|
<div class="subelement argument">
|
|
<h4>argument</h4>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
object</code><p></p>
|
|
</div>
|
|
|
|
|
|
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
|
|
<h3>Response</h3>
|
|
<code>
|
|
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</code><p></p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<a id="method_accept"></a>
|
|
<div class="element clickable method public method_accept" data-toggle="collapse" data-target=".method_accept .collapse">
|
|
<h2>accept</h2>
|
|
<pre>accept(\ScssPhp\ScssPhp\Visitor\ValueVisitorvisitor) : mixed</pre>
|
|
<div class="labels">
|
|
</div>
|
|
|
|
|
|
<div class="row collapse">
|
|
<div class="detail-description">
|
|
<div class="long_description"></div>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h3>Arguments</h3>
|
|
<div class="subelement argument">
|
|
<h4>visitor</h4>
|
|
<code>
|
|
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</code><p></p>
|
|
</div>
|
|
|
|
|
|
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
|
|
<h3>Response</h3>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
mixed</code><p></p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<a id="method_acos"></a>
|
|
<div class="element clickable method public method_acos" data-toggle="collapse" data-target=".method_acos .collapse">
|
|
<h2>Creates an `acos()` calculation with the given $argument.</h2>
|
|
<pre>acos(objectargument) : \ScssPhp\ScssPhp\Value\Value</pre>
|
|
<div class="labels">
|
|
<span class="label">static</span> </div>
|
|
|
|
|
|
<div class="row collapse">
|
|
<div class="detail-description">
|
|
<div class="long_description"><p>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}.</p>
|
|
<p>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.</p>
|
|
</div>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h3>Arguments</h3>
|
|
<div class="subelement argument">
|
|
<h4>argument</h4>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
object</code><p></p>
|
|
</div>
|
|
|
|
|
|
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
|
|
<h3>Response</h3>
|
|
<code>
|
|
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</code><p></p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<a id="method_asin"></a>
|
|
<div class="element clickable method public method_asin" data-toggle="collapse" data-target=".method_asin .collapse">
|
|
<h2>Creates an `asin()` calculation with the given $argument.</h2>
|
|
<pre>asin(objectargument) : \ScssPhp\ScssPhp\Value\Value</pre>
|
|
<div class="labels">
|
|
<span class="label">static</span> </div>
|
|
|
|
|
|
<div class="row collapse">
|
|
<div class="detail-description">
|
|
<div class="long_description"><p>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}.</p>
|
|
<p>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.</p>
|
|
</div>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h3>Arguments</h3>
|
|
<div class="subelement argument">
|
|
<h4>argument</h4>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
object</code><p></p>
|
|
</div>
|
|
|
|
|
|
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
|
|
<h3>Response</h3>
|
|
<code>
|
|
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</code><p></p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<a id="method_asList"></a>
|
|
<div class="element clickable method public method_asList inherited" data-toggle="collapse" data-target=".method_asList .collapse">
|
|
<h2>This value as a list.</h2>
|
|
<pre>asList() : list<\ScssPhp\ScssPhp\Value\Value></pre>
|
|
<div class="labels">
|
|
<span class="label">inherited</span> </div>
|
|
|
|
|
|
<div class="row collapse">
|
|
<div class="detail-description">
|
|
<div class="long_description"><p>All SassScript values can be used as lists. Maps count as lists of pairs,
|
|
and all other values count as single-value lists.</p>
|
|
</div>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
|
|
|
|
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
|
|
<h3>Response</h3>
|
|
<code>
|
|
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></code><p></p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<a id="method_assertBoolean"></a>
|
|
<div class="element clickable method public method_assertBoolean inherited" data-toggle="collapse" data-target=".method_assertBoolean .collapse">
|
|
<h2>Throws a {@see SassScriptException} if $this isn't a boolean.</h2>
|
|
<pre>assertBoolean(?stringname = null) : \ScssPhp\ScssPhp\Value\SassBoolean</pre>
|
|
<div class="labels">
|
|
<span class="label">inherited</span> </div>
|
|
|
|
|
|
<div class="row collapse">
|
|
<div class="detail-description">
|
|
<div class="long_description"><p>Note that generally, functions should use {@see \ScssPhp\ScssPhp\Value\isTruthy} rather than requiring
|
|
a literal boolean.</p>
|
|
<p>If this came from a function argument, $name is the argument name
|
|
(without the <code class="prettyprint">$</code>). It's used for error reporting.</p>
|
|
</div>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Throws</th>
|
|
<td>
|
|
<dl>
|
|
<dt>
|
|
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</dt>
|
|
<dd></dd>
|
|
</dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h3>Arguments</h3>
|
|
<div class="subelement argument">
|
|
<h4>name</h4>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
?string</code><p></p>
|
|
</div>
|
|
|
|
|
|
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
|
|
<h3>Response</h3>
|
|
<code>
|
|
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</code><p></p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<a id="method_assertCalculation"></a>
|
|
<div class="element clickable method public method_assertCalculation" data-toggle="collapse" data-target=".method_assertCalculation .collapse">
|
|
<h2>Throws a {@see SassScriptException} if $this isn't a calculation.</h2>
|
|
<pre>assertCalculation(?stringname = null) : \ScssPhp\ScssPhp\Value\SassCalculation</pre>
|
|
<div class="labels">
|
|
</div>
|
|
|
|
|
|
<div class="row collapse">
|
|
<div class="detail-description">
|
|
<div class="long_description"><p>If this came from a function argument, $name is the argument name
|
|
(without the <code class="prettyprint">$</code>). It's used for error reporting.</p>
|
|
</div>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h3>Arguments</h3>
|
|
<div class="subelement argument">
|
|
<h4>name</h4>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
?string</code><p></p>
|
|
</div>
|
|
|
|
|
|
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
|
|
<h3>Response</h3>
|
|
<code>
|
|
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</code><p></p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<a id="method_assertColor"></a>
|
|
<div class="element clickable method public method_assertColor inherited" data-toggle="collapse" data-target=".method_assertColor .collapse">
|
|
<h2>Throws a {@see SassScriptException} if $this isn't a color.</h2>
|
|
<pre>assertColor(?stringname = null) : \ScssPhp\ScssPhp\Value\SassColor</pre>
|
|
<div class="labels">
|
|
<span class="label">inherited</span> </div>
|
|
|
|
|
|
<div class="row collapse">
|
|
<div class="detail-description">
|
|
<div class="long_description"><p>If this came from a function argument, $name is the argument name
|
|
(without the <code class="prettyprint">$</code>). It's used for error reporting.</p>
|
|
</div>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Throws</th>
|
|
<td>
|
|
<dl>
|
|
<dt>
|
|
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</dt>
|
|
<dd></dd>
|
|
</dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h3>Arguments</h3>
|
|
<div class="subelement argument">
|
|
<h4>name</h4>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
?string</code><p></p>
|
|
</div>
|
|
|
|
|
|
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
|
|
<h3>Response</h3>
|
|
<code>
|
|
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</code><p></p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<a id="method_assertFunction"></a>
|
|
<div class="element clickable method public method_assertFunction inherited" data-toggle="collapse" data-target=".method_assertFunction .collapse">
|
|
<h2>Throws a {@see SassScriptException} if $this isn't a string.</h2>
|
|
<pre>assertFunction(?stringname = null) : \ScssPhp\ScssPhp\Value\SassFunction</pre>
|
|
<div class="labels">
|
|
<span class="label">inherited</span> </div>
|
|
|
|
|
|
<div class="row collapse">
|
|
<div class="detail-description">
|
|
<div class="long_description"><p>If this came from a function argument, $name is the argument name
|
|
(without the <code class="prettyprint">$</code>). It's used for error reporting.</p>
|
|
</div>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Throws</th>
|
|
<td>
|
|
<dl>
|
|
<dt>
|
|
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</dt>
|
|
<dd></dd>
|
|
</dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h3>Arguments</h3>
|
|
<div class="subelement argument">
|
|
<h4>name</h4>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
?string</code><p></p>
|
|
</div>
|
|
|
|
|
|
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
|
|
<h3>Response</h3>
|
|
<code>
|
|
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</code><p></p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<a id="method_assertMap"></a>
|
|
<div class="element clickable method public method_assertMap inherited" data-toggle="collapse" data-target=".method_assertMap .collapse">
|
|
<h2>Throws a {@see SassScriptException} if $this isn't a map.</h2>
|
|
<pre>assertMap(?stringname = null) : \ScssPhp\ScssPhp\Value\SassMap</pre>
|
|
<div class="labels">
|
|
<span class="label">inherited</span> </div>
|
|
|
|
|
|
<div class="row collapse">
|
|
<div class="detail-description">
|
|
<div class="long_description"><p>If this came from a function argument, $name is the argument name
|
|
(without the <code class="prettyprint">$</code>). It's used for error reporting.</p>
|
|
</div>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Throws</th>
|
|
<td>
|
|
<dl>
|
|
<dt>
|
|
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</dt>
|
|
<dd></dd>
|
|
</dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h3>Arguments</h3>
|
|
<div class="subelement argument">
|
|
<h4>name</h4>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
?string</code><p></p>
|
|
</div>
|
|
|
|
|
|
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
|
|
<h3>Response</h3>
|
|
<code>
|
|
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</code><p></p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<a id="method_assertNumber"></a>
|
|
<div class="element clickable method public method_assertNumber inherited" data-toggle="collapse" data-target=".method_assertNumber .collapse">
|
|
<h2>Throws a {@see SassScriptException} if $this isn't a number.</h2>
|
|
<pre>assertNumber(?stringname = null) : \ScssPhp\ScssPhp\Value\SassNumber</pre>
|
|
<div class="labels">
|
|
<span class="label">inherited</span> </div>
|
|
|
|
|
|
<div class="row collapse">
|
|
<div class="detail-description">
|
|
<div class="long_description"><p>If this came from a function argument, $name is the argument name
|
|
(without the <code class="prettyprint">$</code>). It's used for error reporting.</p>
|
|
</div>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Throws</th>
|
|
<td>
|
|
<dl>
|
|
<dt>
|
|
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</dt>
|
|
<dd></dd>
|
|
</dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h3>Arguments</h3>
|
|
<div class="subelement argument">
|
|
<h4>name</h4>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
?string</code><p></p>
|
|
</div>
|
|
|
|
|
|
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
|
|
<h3>Response</h3>
|
|
<code>
|
|
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</code><p></p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<a id="method_assertString"></a>
|
|
<div class="element clickable method public method_assertString inherited" data-toggle="collapse" data-target=".method_assertString .collapse">
|
|
<h2>Throws a {@see SassScriptException} if $this isn't a string.</h2>
|
|
<pre>assertString(?stringname = null) : \ScssPhp\ScssPhp\Value\SassString</pre>
|
|
<div class="labels">
|
|
<span class="label">inherited</span> </div>
|
|
|
|
|
|
<div class="row collapse">
|
|
<div class="detail-description">
|
|
<div class="long_description"><p>If this came from a function argument, $name is the argument name
|
|
(without the <code class="prettyprint">$</code>). It's used for error reporting.</p>
|
|
</div>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Throws</th>
|
|
<td>
|
|
<dl>
|
|
<dt>
|
|
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</dt>
|
|
<dd></dd>
|
|
</dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h3>Arguments</h3>
|
|
<div class="subelement argument">
|
|
<h4>name</h4>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
?string</code><p></p>
|
|
</div>
|
|
|
|
|
|
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
|
|
<h3>Response</h3>
|
|
<code>
|
|
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</code><p></p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<a id="method_atan"></a>
|
|
<div class="element clickable method public method_atan" data-toggle="collapse" data-target=".method_atan .collapse">
|
|
<h2>Creates an `atan()` calculation with the given $argument.</h2>
|
|
<pre>atan(objectargument) : \ScssPhp\ScssPhp\Value\Value</pre>
|
|
<div class="labels">
|
|
<span class="label">static</span> </div>
|
|
|
|
|
|
<div class="row collapse">
|
|
<div class="detail-description">
|
|
<div class="long_description"><p>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}.</p>
|
|
<p>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.</p>
|
|
</div>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h3>Arguments</h3>
|
|
<div class="subelement argument">
|
|
<h4>argument</h4>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
object</code><p></p>
|
|
</div>
|
|
|
|
|
|
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
|
|
<h3>Response</h3>
|
|
<code>
|
|
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</code><p></p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<a id="method_atan2"></a>
|
|
<div class="element clickable method public method_atan2" data-toggle="collapse" data-target=".method_atan2 .collapse">
|
|
<h2>Creates a `atan2()` calculation for $y and $x.</h2>
|
|
<pre>atan2(objecty, ?objectx) : \ScssPhp\ScssPhp\Value\Value</pre>
|
|
<div class="labels">
|
|
<span class="label">static</span> </div>
|
|
|
|
|
|
<div class="row collapse">
|
|
<div class="detail-description">
|
|
<div class="long_description"><p>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}.</p>
|
|
<p>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.</p>
|
|
<p>This may be passed fewer than two arguments, but only if one of the
|
|
arguments is an unquoted <code class="prettyprint">var()</code> string.</p>
|
|
</div>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h3>Arguments</h3>
|
|
<div class="subelement argument">
|
|
<h4>y</h4>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
object</code><p></p>
|
|
</div>
|
|
<div class="subelement argument">
|
|
<h4>x</h4>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
?object</code><p></p>
|
|
</div>
|
|
|
|
|
|
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
|
|
<h3>Response</h3>
|
|
<code>
|
|
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</code><p></p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<a id="method_calc"></a>
|
|
<div class="element clickable method public method_calc" data-toggle="collapse" data-target=".method_calc .collapse">
|
|
<h2>Creates a `calc()` calculation with the given $argument.</h2>
|
|
<pre>calc(objectargument) : \ScssPhp\ScssPhp\Value\Value</pre>
|
|
<div class="labels">
|
|
<span class="label">static</span> </div>
|
|
|
|
|
|
<div class="row collapse">
|
|
<div class="detail-description">
|
|
<div class="long_description"><p>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}.</p>
|
|
<p>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.</p>
|
|
</div>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Throws</th>
|
|
<td>
|
|
<dl>
|
|
<dt>
|
|
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</dt>
|
|
<dd></dd>
|
|
</dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h3>Arguments</h3>
|
|
<div class="subelement argument">
|
|
<h4>argument</h4>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
object</code><p></p>
|
|
</div>
|
|
|
|
|
|
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
|
|
<h3>Response</h3>
|
|
<code>
|
|
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</code><p></p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<a id="method_charNeedsParentheses"></a>
|
|
<div class="element clickable method private method_charNeedsParentheses" data-toggle="collapse" data-target=".method_charNeedsParentheses .collapse">
|
|
<h2>Returns whether $character intrinsically needs parentheses if it appears
|
|
in the unquoted string argument of a `calc()` being embedded in another
|
|
calculation.</h2>
|
|
<pre>charNeedsParentheses(stringcharacter) : bool</pre>
|
|
<div class="labels">
|
|
<span class="label">static</span> </div>
|
|
|
|
|
|
<div class="row collapse">
|
|
<div class="detail-description">
|
|
<div class="long_description"></div>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h3>Arguments</h3>
|
|
<div class="subelement argument">
|
|
<h4>character</h4>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
string</code><p></p>
|
|
</div>
|
|
|
|
|
|
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
|
|
<h3>Response</h3>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
bool</code><p></p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<a id="method_clamp"></a>
|
|
<div class="element clickable method public method_clamp" data-toggle="collapse" data-target=".method_clamp .collapse">
|
|
<h2>Creates a `clamp()` calculation with the given $min, $value, and $max.</h2>
|
|
<pre>clamp(objectmin, ?objectvalue = null, ?objectmax = null) : \ScssPhp\ScssPhp\Value\Value</pre>
|
|
<div class="labels">
|
|
<span class="label">static</span> </div>
|
|
|
|
|
|
<div class="row collapse">
|
|
<div class="detail-description">
|
|
<div class="long_description"><p>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}.</p>
|
|
<p>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.</p>
|
|
<p>This may be passed fewer than three arguments, but only if one of the
|
|
arguments is an unquoted <code class="prettyprint">var()</code> string.</p>
|
|
</div>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Throws</th>
|
|
<td>
|
|
<dl>
|
|
<dt>
|
|
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</dt>
|
|
<dd></dd>
|
|
</dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h3>Arguments</h3>
|
|
<div class="subelement argument">
|
|
<h4>min</h4>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
object</code><p></p>
|
|
</div>
|
|
<div class="subelement argument">
|
|
<h4>value</h4>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
?object</code><p></p>
|
|
</div>
|
|
<div class="subelement argument">
|
|
<h4>max</h4>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
?object</code><p></p>
|
|
</div>
|
|
|
|
|
|
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
|
|
<h3>Response</h3>
|
|
<code>
|
|
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</code><p></p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<a id="method_cos"></a>
|
|
<div class="element clickable method public method_cos" data-toggle="collapse" data-target=".method_cos .collapse">
|
|
<h2>Creates a `cos()` calculation with the given $argument.</h2>
|
|
<pre>cos(objectargument) : \ScssPhp\ScssPhp\Value\Value</pre>
|
|
<div class="labels">
|
|
<span class="label">static</span> </div>
|
|
|
|
|
|
<div class="row collapse">
|
|
<div class="detail-description">
|
|
<div class="long_description"><p>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}.</p>
|
|
<p>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.</p>
|
|
</div>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h3>Arguments</h3>
|
|
<div class="subelement argument">
|
|
<h4>argument</h4>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
object</code><p></p>
|
|
</div>
|
|
|
|
|
|
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
|
|
<h3>Response</h3>
|
|
<code>
|
|
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</code><p></p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<a id="method_equals"></a>
|
|
<div class="element clickable method public method_equals" data-toggle="collapse" data-target=".method_equals .collapse">
|
|
<h2>equals</h2>
|
|
<pre>equals(objectother) : bool</pre>
|
|
<div class="labels">
|
|
</div>
|
|
|
|
|
|
<div class="row collapse">
|
|
<div class="detail-description">
|
|
<div class="long_description"></div>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h3>Arguments</h3>
|
|
<div class="subelement argument">
|
|
<h4>other</h4>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
object</code><p></p>
|
|
</div>
|
|
|
|
|
|
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
|
|
<h3>Response</h3>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
bool</code><p></p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<a id="method_exp"></a>
|
|
<div class="element clickable method public method_exp" data-toggle="collapse" data-target=".method_exp .collapse">
|
|
<h2>Creates an `exp()` calculation with the given $argument.</h2>
|
|
<pre>exp(objectargument) : \ScssPhp\ScssPhp\Value\Value</pre>
|
|
<div class="labels">
|
|
<span class="label">static</span> </div>
|
|
|
|
|
|
<div class="row collapse">
|
|
<div class="detail-description">
|
|
<div class="long_description"><p>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}.</p>
|
|
<p>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.</p>
|
|
</div>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h3>Arguments</h3>
|
|
<div class="subelement argument">
|
|
<h4>argument</h4>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
object</code><p></p>
|
|
</div>
|
|
|
|
|
|
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
|
|
<h3>Response</h3>
|
|
<code>
|
|
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</code><p></p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<a id="method_getArguments"></a>
|
|
<div class="element clickable method public method_getArguments" data-toggle="collapse" data-target=".method_getArguments .collapse">
|
|
<h2>getArguments</h2>
|
|
<pre>getArguments() : list<object></pre>
|
|
<div class="labels">
|
|
</div>
|
|
|
|
|
|
<div class="row collapse">
|
|
<div class="detail-description">
|
|
<div class="long_description"></div>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
|
|
|
|
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
|
|
<h3>Response</h3>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
list<object></code><p></p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<a id="method_getLengthAsList"></a>
|
|
<div class="element clickable method protected method_getLengthAsList inherited" data-toggle="collapse" data-target=".method_getLengthAsList .collapse">
|
|
<h2>The length of {@see asList}.</h2>
|
|
<pre>getLengthAsList() : int</pre>
|
|
<div class="labels">
|
|
<span class="label">inherited</span> </div>
|
|
|
|
|
|
<div class="row collapse">
|
|
<div class="detail-description">
|
|
<div class="long_description"><p>This is used to compute {@see \ScssPhp\ScssPhp\Value\sassIndexToListIndex} without allocating a new
|
|
list.</p>
|
|
</div>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
|
|
|
|
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
|
|
<h3>Response</h3>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
int</code><p></p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<a id="method_getName"></a>
|
|
<div class="element clickable method public method_getName" data-toggle="collapse" data-target=".method_getName .collapse">
|
|
<h2>getName</h2>
|
|
<pre>getName() : string</pre>
|
|
<div class="labels">
|
|
</div>
|
|
|
|
|
|
<div class="row collapse">
|
|
<div class="detail-description">
|
|
<div class="long_description"></div>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
|
|
|
|
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
|
|
<h3>Response</h3>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
string</code><p></p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<a id="method_getSeparator"></a>
|
|
<div class="element clickable method public method_getSeparator inherited" data-toggle="collapse" data-target=".method_getSeparator .collapse">
|
|
<h2>The separator for this value as a list.</h2>
|
|
<pre>getSeparator() : \ScssPhp\ScssPhp\Value\ListSeparator</pre>
|
|
<div class="labels">
|
|
<span class="label">inherited</span> </div>
|
|
|
|
|
|
<div class="row collapse">
|
|
<div class="detail-description">
|
|
<div class="long_description"><p>All SassScript values can be used as lists. Maps count as lists of pairs,
|
|
and all other values count as single-value lists.</p>
|
|
</div>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
|
|
|
|
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
|
|
<h3>Response</h3>
|
|
<code>
|
|
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</code><p></p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<a id="method_hasBrackets"></a>
|
|
<div class="element clickable method public method_hasBrackets inherited" data-toggle="collapse" data-target=".method_hasBrackets .collapse">
|
|
<h2>Whether this value as a list has brackets.</h2>
|
|
<pre>hasBrackets() : bool</pre>
|
|
<div class="labels">
|
|
<span class="label">inherited</span> </div>
|
|
|
|
|
|
<div class="row collapse">
|
|
<div class="detail-description">
|
|
<div class="long_description"><p>All SassScript values can be used as lists. Maps count as lists of pairs,
|
|
and all other values count as single-value lists.</p>
|
|
</div>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
|
|
|
|
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
|
|
<h3>Response</h3>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
bool</code><p></p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<a id="method_hypot"></a>
|
|
<div class="element clickable method public method_hypot" data-toggle="collapse" data-target=".method_hypot .collapse">
|
|
<h2>Creates a `hypot()` calculation with the given $arguments.</h2>
|
|
<pre>hypot(list<object>arguments) : \ScssPhp\ScssPhp\Value\Value</pre>
|
|
<div class="labels">
|
|
<span class="label">static</span> </div>
|
|
|
|
|
|
<div class="row collapse">
|
|
<div class="detail-description">
|
|
<div class="long_description"><p>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.</p>
|
|
<p>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.</p>
|
|
</div>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h3>Arguments</h3>
|
|
<div class="subelement argument">
|
|
<h4>arguments</h4>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
list<object></code><p></p>
|
|
</div>
|
|
|
|
|
|
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
|
|
<h3>Response</h3>
|
|
<code>
|
|
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</code><p></p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<a id="method_isSpecialNumber"></a>
|
|
<div class="element clickable method public method_isSpecialNumber" data-toggle="collapse" data-target=".method_isSpecialNumber .collapse">
|
|
<h2>isSpecialNumber</h2>
|
|
<pre>isSpecialNumber() : bool</pre>
|
|
<div class="labels">
|
|
</div>
|
|
|
|
|
|
<div class="row collapse">
|
|
<div class="detail-description">
|
|
<div class="long_description"></div>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
|
|
|
|
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
|
|
<h3>Response</h3>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
bool</code><p></p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<a id="method_isTruthy"></a>
|
|
<div class="element clickable method public method_isTruthy inherited" data-toggle="collapse" data-target=".method_isTruthy .collapse">
|
|
<h2>Whether the value counts as `true` in an `@if` statement and other contexts</h2>
|
|
<pre>isTruthy() : bool</pre>
|
|
<div class="labels">
|
|
<span class="label">inherited</span> </div>
|
|
|
|
|
|
<div class="row collapse">
|
|
<div class="detail-description">
|
|
<div class="long_description"></div>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
|
|
|
|
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
|
|
<h3>Response</h3>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
bool</code><p></p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<a id="method_log"></a>
|
|
<div class="element clickable method public method_log" data-toggle="collapse" data-target=".method_log .collapse">
|
|
<h2>Creates a `log()` calculation with the given $number and $base.</h2>
|
|
<pre>log(objectnumber, ?objectbase) : \ScssPhp\ScssPhp\Value\Value</pre>
|
|
<div class="labels">
|
|
<span class="label">static</span> </div>
|
|
|
|
|
|
<div class="row collapse">
|
|
<div class="detail-description">
|
|
<div class="long_description"><p>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}.</p>
|
|
<p>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.</p>
|
|
<p>If arguments contains exactly a single argument, the base is set to
|
|
<code class="prettyprint">math.e</code> by default.</p>
|
|
</div>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h3>Arguments</h3>
|
|
<div class="subelement argument">
|
|
<h4>number</h4>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
object</code><p></p>
|
|
</div>
|
|
<div class="subelement argument">
|
|
<h4>base</h4>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
?object</code><p></p>
|
|
</div>
|
|
|
|
|
|
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
|
|
<h3>Response</h3>
|
|
<code>
|
|
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</code><p></p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<a id="method_matchUnits"></a>
|
|
<div class="element clickable method private method_matchUnits" data-toggle="collapse" data-target=".method_matchUnits .collapse">
|
|
<h2>Returns $value coerced to $number's units.</h2>
|
|
<pre>matchUnits(floatvalue, \ScssPhp\ScssPhp\Value\SassNumbernumber) : \ScssPhp\ScssPhp\Value\SassNumber</pre>
|
|
<div class="labels">
|
|
<span class="label">static</span> </div>
|
|
|
|
|
|
<div class="row collapse">
|
|
<div class="detail-description">
|
|
<div class="long_description"></div>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h3>Arguments</h3>
|
|
<div class="subelement argument">
|
|
<h4>value</h4>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
float</code><p></p>
|
|
</div>
|
|
<div class="subelement argument">
|
|
<h4>number</h4>
|
|
<code>
|
|
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</code><p></p>
|
|
</div>
|
|
|
|
|
|
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
|
|
<h3>Response</h3>
|
|
<code>
|
|
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</code><p></p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<a id="method_max"></a>
|
|
<div class="element clickable method public method_max" data-toggle="collapse" data-target=".method_max .collapse">
|
|
<h2>Creates a `max()` calculation with the given $arguments.</h2>
|
|
<pre>max(list<object>arguments) : \ScssPhp\ScssPhp\Value\Value</pre>
|
|
<div class="labels">
|
|
<span class="label">static</span> </div>
|
|
|
|
|
|
<div class="row collapse">
|
|
<div class="detail-description">
|
|
<div class="long_description"><p>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.</p>
|
|
<p>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.</p>
|
|
</div>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Throws</th>
|
|
<td>
|
|
<dl>
|
|
<dt>
|
|
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</dt>
|
|
<dd></dd>
|
|
</dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h3>Arguments</h3>
|
|
<div class="subelement argument">
|
|
<h4>arguments</h4>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
list<object></code><p></p>
|
|
</div>
|
|
|
|
|
|
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
|
|
<h3>Response</h3>
|
|
<code>
|
|
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</code><p></p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<a id="method_min"></a>
|
|
<div class="element clickable method public method_min" data-toggle="collapse" data-target=".method_min .collapse">
|
|
<h2>Creates a `min()` calculation with the given $arguments.</h2>
|
|
<pre>min(list<object>arguments) : \ScssPhp\ScssPhp\Value\Value</pre>
|
|
<div class="labels">
|
|
<span class="label">static</span> </div>
|
|
|
|
|
|
<div class="row collapse">
|
|
<div class="detail-description">
|
|
<div class="long_description"><p>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.</p>
|
|
<p>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.</p>
|
|
</div>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Throws</th>
|
|
<td>
|
|
<dl>
|
|
<dt>
|
|
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</dt>
|
|
<dd></dd>
|
|
</dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h3>Arguments</h3>
|
|
<div class="subelement argument">
|
|
<h4>arguments</h4>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
list<object></code><p></p>
|
|
</div>
|
|
|
|
|
|
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
|
|
<h3>Response</h3>
|
|
<code>
|
|
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</code><p></p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<a id="method_minus"></a>
|
|
<div class="element clickable method public method_minus" data-toggle="collapse" data-target=".method_minus .collapse">
|
|
<h2>minus</h2>
|
|
<pre>minus(\ScssPhp\ScssPhp\Value\Valueother) : \ScssPhp\ScssPhp\Value\Value</pre>
|
|
<div class="labels">
|
|
</div>
|
|
|
|
|
|
<div class="row collapse">
|
|
<div class="detail-description">
|
|
<div class="long_description"></div>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h3>Arguments</h3>
|
|
<div class="subelement argument">
|
|
<h4>other</h4>
|
|
<code>
|
|
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</code><p></p>
|
|
</div>
|
|
|
|
|
|
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
|
|
<h3>Response</h3>
|
|
<code>
|
|
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</code><p></p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<a id="method_mod"></a>
|
|
<div class="element clickable method public method_mod" data-toggle="collapse" data-target=".method_mod .collapse">
|
|
<h2>Creates a `mod()` calculation with the given $dividend and $modulus.</h2>
|
|
<pre>mod(objectdividend, ?objectmodulus) : \ScssPhp\ScssPhp\Value\Value</pre>
|
|
<div class="labels">
|
|
<span class="label">static</span> </div>
|
|
|
|
|
|
<div class="row collapse">
|
|
<div class="detail-description">
|
|
<div class="long_description"><p>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}.</p>
|
|
<p>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.</p>
|
|
<p>This may be passed fewer than two arguments, but only if one of the
|
|
arguments is an unquoted <code class="prettyprint">var()</code> string.</p>
|
|
</div>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h3>Arguments</h3>
|
|
<div class="subelement argument">
|
|
<h4>dividend</h4>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
object</code><p></p>
|
|
</div>
|
|
<div class="subelement argument">
|
|
<h4>modulus</h4>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
?object</code><p></p>
|
|
</div>
|
|
|
|
|
|
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
|
|
<h3>Response</h3>
|
|
<code>
|
|
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</code><p></p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<a id="method_needsParentheses"></a>
|
|
<div class="element clickable method private method_needsParentheses" data-toggle="collapse" data-target=".method_needsParentheses .collapse">
|
|
<h2>Returns whether $text needs parentheses if it's the contents of a
|
|
`calc()` being embedded in another calculation.</h2>
|
|
<pre>needsParentheses(stringtext) : bool</pre>
|
|
<div class="labels">
|
|
<span class="label">static</span> </div>
|
|
|
|
|
|
<div class="row collapse">
|
|
<div class="detail-description">
|
|
<div class="long_description"></div>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h3>Arguments</h3>
|
|
<div class="subelement argument">
|
|
<h4>text</h4>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
string</code><p></p>
|
|
</div>
|
|
|
|
|
|
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
|
|
<h3>Response</h3>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
bool</code><p></p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<a id="method_operate"></a>
|
|
<div class="element clickable method public method_operate" data-toggle="collapse" data-target=".method_operate .collapse">
|
|
<h2>Creates and simplifies a {@see CalculationOperation} with the given $operator,
|
|
$left, and $right.</h2>
|
|
<pre>operate(\ScssPhp\ScssPhp\Value\CalculationOperatoroperator, objectleft, objectright) : object</pre>
|
|
<div class="labels">
|
|
<span class="label">static</span> </div>
|
|
|
|
|
|
<div class="row collapse">
|
|
<div class="detail-description">
|
|
<div class="long_description"><p>This automatically simplifies the operation, so it may return a
|
|
{@see \ScssPhp\ScssPhp\Value\SassNumber} rather than a {@see \ScssPhp\ScssPhp\Value\CalculationOperation}.</p>
|
|
<p>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}.</p>
|
|
</div>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Throws</th>
|
|
<td>
|
|
<dl>
|
|
<dt>
|
|
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</dt>
|
|
<dd></dd>
|
|
</dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h3>Arguments</h3>
|
|
<div class="subelement argument">
|
|
<h4>operator</h4>
|
|
<code>
|
|
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</code><p></p>
|
|
</div>
|
|
<div class="subelement argument">
|
|
<h4>left</h4>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
object</code><p></p>
|
|
</div>
|
|
<div class="subelement argument">
|
|
<h4>right</h4>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
object</code><p></p>
|
|
</div>
|
|
|
|
|
|
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
|
|
<h3>Response</h3>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
object</code><p></p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<a id="method_plus"></a>
|
|
<div class="element clickable method public method_plus" data-toggle="collapse" data-target=".method_plus .collapse">
|
|
<h2>plus</h2>
|
|
<pre>plus(\ScssPhp\ScssPhp\Value\Valueother) : \ScssPhp\ScssPhp\Value\Value</pre>
|
|
<div class="labels">
|
|
</div>
|
|
|
|
|
|
<div class="row collapse">
|
|
<div class="detail-description">
|
|
<div class="long_description"></div>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h3>Arguments</h3>
|
|
<div class="subelement argument">
|
|
<h4>other</h4>
|
|
<code>
|
|
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</code><p></p>
|
|
</div>
|
|
|
|
|
|
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
|
|
<h3>Response</h3>
|
|
<code>
|
|
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</code><p></p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<a id="method_pow"></a>
|
|
<div class="element clickable method public method_pow" data-toggle="collapse" data-target=".method_pow .collapse">
|
|
<h2>Creates a `pow()` calculation with the given $base and $exponent.</h2>
|
|
<pre>pow(objectbase, ?objectexponent) : \ScssPhp\ScssPhp\Value\Value</pre>
|
|
<div class="labels">
|
|
<span class="label">static</span> </div>
|
|
|
|
|
|
<div class="row collapse">
|
|
<div class="detail-description">
|
|
<div class="long_description"><p>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}.</p>
|
|
<p>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.</p>
|
|
<p>This may be passed fewer than two arguments, but only if one of the
|
|
arguments is an unquoted <code class="prettyprint">var()</code> string.</p>
|
|
</div>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h3>Arguments</h3>
|
|
<div class="subelement argument">
|
|
<h4>base</h4>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
object</code><p></p>
|
|
</div>
|
|
<div class="subelement argument">
|
|
<h4>exponent</h4>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
?object</code><p></p>
|
|
</div>
|
|
|
|
|
|
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
|
|
<h3>Response</h3>
|
|
<code>
|
|
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</code><p></p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<a id="method_rem"></a>
|
|
<div class="element clickable method public method_rem" data-toggle="collapse" data-target=".method_rem .collapse">
|
|
<h2>Creates a `rem()` calculation with the given $dividend and $modulus.</h2>
|
|
<pre>rem(objectdividend, ?objectmodulus) : \ScssPhp\ScssPhp\Value\Value</pre>
|
|
<div class="labels">
|
|
<span class="label">static</span> </div>
|
|
|
|
|
|
<div class="row collapse">
|
|
<div class="detail-description">
|
|
<div class="long_description"><p>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}.</p>
|
|
<p>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.</p>
|
|
<p>This may be passed fewer than two arguments, but only if one of the
|
|
arguments is an unquoted <code class="prettyprint">var()</code> string.</p>
|
|
</div>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h3>Arguments</h3>
|
|
<div class="subelement argument">
|
|
<h4>dividend</h4>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
object</code><p></p>
|
|
</div>
|
|
<div class="subelement argument">
|
|
<h4>modulus</h4>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
?object</code><p></p>
|
|
</div>
|
|
|
|
|
|
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
|
|
<h3>Response</h3>
|
|
<code>
|
|
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</code><p></p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<a id="method_round"></a>
|
|
<div class="element clickable method public method_round" data-toggle="collapse" data-target=".method_round .collapse">
|
|
<h2>Creates a `round()` calculation with the given $strategyOrNumber,
|
|
$numberOrStep, and $step. Strategy must be either nearest, up, down or
|
|
to-zero.</h2>
|
|
<pre>round(objectstrategyOrNumber, ?objectnumberOrStep = null, ?objectstep = null) : \ScssPhp\ScssPhp\Value\Value</pre>
|
|
<div class="labels">
|
|
<span class="label">static</span> </div>
|
|
|
|
|
|
<div class="row collapse">
|
|
<div class="detail-description">
|
|
<div class="long_description"><p>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}.</p>
|
|
<p>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.</p>
|
|
<p>This may be passed fewer than two arguments, but only if one of the
|
|
arguments is an unquoted <code class="prettyprint">var()</code> string.</p>
|
|
</div>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h3>Arguments</h3>
|
|
<div class="subelement argument">
|
|
<h4>strategyOrNumber</h4>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
object</code><p></p>
|
|
</div>
|
|
<div class="subelement argument">
|
|
<h4>numberOrStep</h4>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
?object</code><p></p>
|
|
</div>
|
|
<div class="subelement argument">
|
|
<h4>step</h4>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
?object</code><p></p>
|
|
</div>
|
|
|
|
|
|
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
|
|
<h3>Response</h3>
|
|
<code>
|
|
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</code><p></p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<a id="method_roundWithStep"></a>
|
|
<div class="element clickable method private method_roundWithStep" data-toggle="collapse" data-target=".method_roundWithStep .collapse">
|
|
<h2>Returns a rounded $number based on a selected rounding $strategy,
|
|
to the nearest integer multiple of $step.</h2>
|
|
<pre>roundWithStep(stringstrategy, \ScssPhp\ScssPhp\Value\SassNumbernumber, \ScssPhp\ScssPhp\Value\SassNumberstep) : \ScssPhp\ScssPhp\Value\SassNumber</pre>
|
|
<div class="labels">
|
|
<span class="label">static</span> </div>
|
|
|
|
|
|
<div class="row collapse">
|
|
<div class="detail-description">
|
|
<div class="long_description"></div>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h3>Arguments</h3>
|
|
<div class="subelement argument">
|
|
<h4>strategy</h4>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
string</code><p></p>
|
|
</div>
|
|
<div class="subelement argument">
|
|
<h4>number</h4>
|
|
<code>
|
|
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</code><p></p>
|
|
</div>
|
|
<div class="subelement argument">
|
|
<h4>step</h4>
|
|
<code>
|
|
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</code><p></p>
|
|
</div>
|
|
|
|
|
|
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
|
|
<h3>Response</h3>
|
|
<code>
|
|
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</code><p></p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<a id="method_sassIndexToListIndex"></a>
|
|
<div class="element clickable method public method_sassIndexToListIndex inherited" data-toggle="collapse" data-target=".method_sassIndexToListIndex .collapse">
|
|
<h2>Converts $sassIndex into a PHP-style index into the list returned by
|
|
{@see asList}.</h2>
|
|
<pre>sassIndexToListIndex(\ScssPhp\ScssPhp\Value\ValuesassIndex, ?stringname = null) : int</pre>
|
|
<div class="labels">
|
|
<span class="label">inherited</span> </div>
|
|
|
|
|
|
<div class="row collapse">
|
|
<div class="detail-description">
|
|
<div class="long_description"><p>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.</p>
|
|
</div>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Throws</th>
|
|
<td>
|
|
<dl>
|
|
<dt>
|
|
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</dt>
|
|
<dd><p>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 <code class="prettyprint">$</code>). It's used for error reporting.</p>
|
|
</dd>
|
|
</dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h3>Arguments</h3>
|
|
<div class="subelement argument">
|
|
<h4>sassIndex</h4>
|
|
<code>
|
|
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</code><p></p>
|
|
</div>
|
|
<div class="subelement argument">
|
|
<h4>name</h4>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
?string</code><p></p>
|
|
</div>
|
|
|
|
|
|
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
|
|
<h3>Response</h3>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
int</code><p></p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<a id="method_selectorString"></a>
|
|
<div class="element clickable method private method_selectorString inherited" data-toggle="collapse" data-target=".method_selectorString .collapse">
|
|
<h2>Converts a `selector-parse()`-style input into a string that can be
|
|
parsed.</h2>
|
|
<pre>selectorString(?stringname) : string</pre>
|
|
<div class="labels">
|
|
<span class="label">inherited</span> </div>
|
|
|
|
|
|
<div class="row collapse">
|
|
<div class="detail-description">
|
|
<div class="long_description"></div>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Throws</th>
|
|
<td>
|
|
<dl>
|
|
<dt>
|
|
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</dt>
|
|
<dd><p>if $this isn't a type or a structure that
|
|
can be parsed as a selector.</p>
|
|
</dd>
|
|
</dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h3>Arguments</h3>
|
|
<div class="subelement argument">
|
|
<h4>name</h4>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
?string</code><p></p>
|
|
</div>
|
|
|
|
|
|
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
|
|
<h3>Response</h3>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
string</code><p></p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<a id="method_selectorStringOrNull"></a>
|
|
<div class="element clickable method private method_selectorStringOrNull inherited" data-toggle="collapse" data-target=".method_selectorStringOrNull .collapse">
|
|
<h2>Converts a `selector-parse()`-style input into a string that can be
|
|
parsed.</h2>
|
|
<pre>selectorStringOrNull() : ?string</pre>
|
|
<div class="labels">
|
|
<span class="label">inherited</span> </div>
|
|
|
|
|
|
<div class="row collapse">
|
|
<div class="detail-description">
|
|
<div class="long_description"><p>Returns <code class="prettyprint">null</code> if $this isn't a type or a structure that can be parsed as
|
|
a selector.</p>
|
|
</div>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
|
|
|
|
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
|
|
<h3>Response</h3>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
?string</code><p></p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<a id="method_sign"></a>
|
|
<div class="element clickable method public method_sign" data-toggle="collapse" data-target=".method_sign .collapse">
|
|
<h2>Creates a `sign()` calculation with the given $argument.</h2>
|
|
<pre>sign(objectargument) : \ScssPhp\ScssPhp\Value\Value</pre>
|
|
<div class="labels">
|
|
<span class="label">static</span> </div>
|
|
|
|
|
|
<div class="row collapse">
|
|
<div class="detail-description">
|
|
<div class="long_description"><p>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}.</p>
|
|
<p>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.</p>
|
|
</div>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h3>Arguments</h3>
|
|
<div class="subelement argument">
|
|
<h4>argument</h4>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
object</code><p></p>
|
|
</div>
|
|
|
|
|
|
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
|
|
<h3>Response</h3>
|
|
<code>
|
|
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</code><p></p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<a id="method_simplify"></a>
|
|
<div class="element clickable method private method_simplify" data-toggle="collapse" data-target=".method_simplify .collapse">
|
|
<h2>simplify</h2>
|
|
<pre>simplify(objectarg) : \ScssPhp\ScssPhp\Value\SassNumber|\ScssPhp\ScssPhp\Value\CalculationOperation|\ScssPhp\ScssPhp\Value\SassString|\ScssPhp\ScssPhp\Value\SassCalculation</pre>
|
|
<div class="labels">
|
|
<span class="label">static</span> </div>
|
|
|
|
|
|
<div class="row collapse">
|
|
<div class="detail-description">
|
|
<div class="long_description"></div>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Throws</th>
|
|
<td>
|
|
<dl>
|
|
<dt>
|
|
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</dt>
|
|
<dd></dd>
|
|
</dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h3>Arguments</h3>
|
|
<div class="subelement argument">
|
|
<h4>arg</h4>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
object</code><p></p>
|
|
</div>
|
|
|
|
|
|
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
|
|
<h3>Response</h3>
|
|
<code>
|
|
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</code><p></p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<a id="method_simplifyArguments"></a>
|
|
<div class="element clickable method private method_simplifyArguments" data-toggle="collapse" data-target=".method_simplifyArguments .collapse">
|
|
<h2>simplifyArguments</h2>
|
|
<pre>simplifyArguments(list<object>args) : list<object></pre>
|
|
<div class="labels">
|
|
<span class="label">static</span> </div>
|
|
|
|
|
|
<div class="row collapse">
|
|
<div class="detail-description">
|
|
<div class="long_description"></div>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Throws</th>
|
|
<td>
|
|
<dl>
|
|
<dt>
|
|
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</dt>
|
|
<dd></dd>
|
|
</dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h3>Arguments</h3>
|
|
<div class="subelement argument">
|
|
<h4>args</h4>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
list<object></code><p></p>
|
|
</div>
|
|
|
|
|
|
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
|
|
<h3>Response</h3>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
list<object></code><p></p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<a id="method_sin"></a>
|
|
<div class="element clickable method public method_sin" data-toggle="collapse" data-target=".method_sin .collapse">
|
|
<h2>Creates a `sin()` calculation with the given $argument.</h2>
|
|
<pre>sin(objectargument) : \ScssPhp\ScssPhp\Value\Value</pre>
|
|
<div class="labels">
|
|
<span class="label">static</span> </div>
|
|
|
|
|
|
<div class="row collapse">
|
|
<div class="detail-description">
|
|
<div class="long_description"><p>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}.</p>
|
|
<p>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.</p>
|
|
</div>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h3>Arguments</h3>
|
|
<div class="subelement argument">
|
|
<h4>argument</h4>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
object</code><p></p>
|
|
</div>
|
|
|
|
|
|
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
|
|
<h3>Response</h3>
|
|
<code>
|
|
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</code><p></p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<a id="method_singleArgument"></a>
|
|
<div class="element clickable method private method_singleArgument" data-toggle="collapse" data-target=".method_singleArgument .collapse">
|
|
<h2>singleArgument</h2>
|
|
<pre>singleArgument(stringname, objectargument, callablemathFunc, boolforbidUnits = false) : \ScssPhp\ScssPhp\Value\Value</pre>
|
|
<div class="labels">
|
|
<span class="label">static</span> </div>
|
|
|
|
|
|
<div class="row collapse">
|
|
<div class="detail-description">
|
|
<div class="long_description"></div>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h3>Arguments</h3>
|
|
<div class="subelement argument">
|
|
<h4>name</h4>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
string</code><p></p>
|
|
</div>
|
|
<div class="subelement argument">
|
|
<h4>argument</h4>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
object</code><p></p>
|
|
</div>
|
|
<div class="subelement argument">
|
|
<h4>mathFunc</h4>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
callable</code><p></p>
|
|
</div>
|
|
<div class="subelement argument">
|
|
<h4>forbidUnits</h4>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
bool</code><p></p>
|
|
</div>
|
|
|
|
|
|
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
|
|
<h3>Response</h3>
|
|
<code>
|
|
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</code><p></p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<a id="method_sqrt"></a>
|
|
<div class="element clickable method public method_sqrt" data-toggle="collapse" data-target=".method_sqrt .collapse">
|
|
<h2>Creates a `sqrt()` calculation with the given $argument.</h2>
|
|
<pre>sqrt(objectargument) : \ScssPhp\ScssPhp\Value\Value</pre>
|
|
<div class="labels">
|
|
<span class="label">static</span> </div>
|
|
|
|
|
|
<div class="row collapse">
|
|
<div class="detail-description">
|
|
<div class="long_description"><p>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}.</p>
|
|
<p>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.</p>
|
|
</div>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h3>Arguments</h3>
|
|
<div class="subelement argument">
|
|
<h4>argument</h4>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
object</code><p></p>
|
|
</div>
|
|
|
|
|
|
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
|
|
<h3>Response</h3>
|
|
<code>
|
|
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</code><p></p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<a id="method_tan"></a>
|
|
<div class="element clickable method public method_tan" data-toggle="collapse" data-target=".method_tan .collapse">
|
|
<h2>Creates a `tan()` calculation with the given $argument.</h2>
|
|
<pre>tan(objectargument) : \ScssPhp\ScssPhp\Value\Value</pre>
|
|
<div class="labels">
|
|
<span class="label">static</span> </div>
|
|
|
|
|
|
<div class="row collapse">
|
|
<div class="detail-description">
|
|
<div class="long_description"><p>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}.</p>
|
|
<p>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.</p>
|
|
</div>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h3>Arguments</h3>
|
|
<div class="subelement argument">
|
|
<h4>argument</h4>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
object</code><p></p>
|
|
</div>
|
|
|
|
|
|
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
|
|
<h3>Response</h3>
|
|
<code>
|
|
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</code><p></p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<a id="method_toCssString"></a>
|
|
<div class="element clickable method public method_toCssString inherited" data-toggle="collapse" data-target=".method_toCssString .collapse">
|
|
<h2>Returns a valid CSS representation of $this.</h2>
|
|
<pre>toCssString(boolquote = true) : string</pre>
|
|
<div class="labels">
|
|
<span class="label">inherited</span> <span class="label">final</span> </div>
|
|
|
|
|
|
<div class="row collapse">
|
|
<div class="detail-description">
|
|
<div class="long_description"><p>Use {@see \ScssPhp\ScssPhp\Value\toString} instead to get a string representation even if this
|
|
isn't valid CSS.</p>
|
|
<p>Internal-only: If $quote is <code class="prettyprint">false</code>, quoted strings are emitted without
|
|
quotes.</p>
|
|
</div>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Throws</th>
|
|
<td>
|
|
<dl>
|
|
<dt>
|
|
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</dt>
|
|
<dd><p>if $this cannot be represented in plain CSS.</p>
|
|
</dd>
|
|
</dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h3>Arguments</h3>
|
|
<div class="subelement argument">
|
|
<h4>quote</h4>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
bool</code><p></p>
|
|
</div>
|
|
|
|
|
|
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
|
|
<h3>Response</h3>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
string</code><p></p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<a id="method_tryMap"></a>
|
|
<div class="element clickable method public method_tryMap inherited" data-toggle="collapse" data-target=".method_tryMap .collapse">
|
|
<h2>Return $this as a SassMap if it is one (including empty lists) or null otherwise.</h2>
|
|
<pre>tryMap() : ?\ScssPhp\ScssPhp\Value\SassMap</pre>
|
|
<div class="labels">
|
|
<span class="label">inherited</span> </div>
|
|
|
|
|
|
<div class="row collapse">
|
|
<div class="detail-description">
|
|
<div class="long_description"></div>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
|
|
|
|
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
|
|
<h3>Response</h3>
|
|
<code>
|
|
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</code><p></p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<a id="method_unaryMinus"></a>
|
|
<div class="element clickable method public method_unaryMinus" data-toggle="collapse" data-target=".method_unaryMinus .collapse">
|
|
<h2>unaryMinus</h2>
|
|
<pre>unaryMinus() : \ScssPhp\ScssPhp\Value\Value</pre>
|
|
<div class="labels">
|
|
</div>
|
|
|
|
|
|
<div class="row collapse">
|
|
<div class="detail-description">
|
|
<div class="long_description"></div>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
|
|
|
|
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
|
|
<h3>Response</h3>
|
|
<code>
|
|
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</code><p></p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<a id="method_unaryPlus"></a>
|
|
<div class="element clickable method public method_unaryPlus" data-toggle="collapse" data-target=".method_unaryPlus .collapse">
|
|
<h2>unaryPlus</h2>
|
|
<pre>unaryPlus() : \ScssPhp\ScssPhp\Value\Value</pre>
|
|
<div class="labels">
|
|
</div>
|
|
|
|
|
|
<div class="row collapse">
|
|
<div class="detail-description">
|
|
<div class="long_description"></div>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
|
|
|
|
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
|
|
<h3>Response</h3>
|
|
<code>
|
|
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</code><p></p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<a id="method_verifyCompatibleNumbers"></a>
|
|
<div class="element clickable method private method_verifyCompatibleNumbers" data-toggle="collapse" data-target=".method_verifyCompatibleNumbers .collapse">
|
|
<h2>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.</h2>
|
|
<pre>verifyCompatibleNumbers(list<object>args) : void</pre>
|
|
<div class="labels">
|
|
<span class="label">static</span> </div>
|
|
|
|
|
|
<div class="row collapse">
|
|
<div class="detail-description">
|
|
<div class="long_description"></div>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Throws</th>
|
|
<td>
|
|
<dl>
|
|
<dt>
|
|
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</dt>
|
|
<dd></dd>
|
|
</dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h3>Arguments</h3>
|
|
<div class="subelement argument">
|
|
<h4>args</h4>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
list<object></code><p></p>
|
|
</div>
|
|
|
|
|
|
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
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<a id="method_verifyLength"></a>
|
|
<div class="element clickable method private method_verifyLength" data-toggle="collapse" data-target=".method_verifyLength .collapse">
|
|
<h2>Throws a {@see SassScriptException} if $args isn't $expectedLength *and*
|
|
doesn't contain either a {@see SassString}.</h2>
|
|
<pre>verifyLength(list<object>args, intexpectedLength) : void</pre>
|
|
<div class="labels">
|
|
<span class="label">static</span> </div>
|
|
|
|
|
|
<div class="row collapse">
|
|
<div class="detail-description">
|
|
<div class="long_description"></div>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Throws</th>
|
|
<td>
|
|
<dl>
|
|
<dt>
|
|
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</dt>
|
|
<dd></dd>
|
|
</dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h3>Arguments</h3>
|
|
<div class="subelement argument">
|
|
<h4>args</h4>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
list<object></code><p></p>
|
|
</div>
|
|
<div class="subelement argument">
|
|
<h4>expectedLength</h4>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
int</code><p></p>
|
|
</div>
|
|
|
|
|
|
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
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<a id="method_withListContents"></a>
|
|
<div class="element clickable method public method_withListContents inherited" data-toggle="collapse" data-target=".method_withListContents .collapse">
|
|
<h2>Returns a new list containing $contents that defaults to this value's
|
|
separator and brackets.</h2>
|
|
<pre>withListContents(list<\ScssPhp\ScssPhp\Value\Value>contents, ?\ScssPhp\ScssPhp\Value\ListSeparatorseparator = null, ?boolbrackets = null) : \ScssPhp\ScssPhp\Value\SassList</pre>
|
|
<div class="labels">
|
|
<span class="label">inherited</span> </div>
|
|
|
|
|
|
<div class="row collapse">
|
|
<div class="detail-description">
|
|
<div class="long_description"></div>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h3>Arguments</h3>
|
|
<div class="subelement argument">
|
|
<h4>contents</h4>
|
|
<code>
|
|
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></code><p></p>
|
|
</div>
|
|
<div class="subelement argument">
|
|
<h4>separator</h4>
|
|
<code>
|
|
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</code><p></p>
|
|
</div>
|
|
<div class="subelement argument">
|
|
<h4>brackets</h4>
|
|
<code>
|
|
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
|
|
?bool</code><p></p>
|
|
</div>
|
|
|
|
|
|
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
|
|
<h3>Response</h3>
|
|
<code>
|
|
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</code><p></p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
<h3><i class="icon-custom icon-property"></i> Properties</h3>
|
|
<a id="property_name"> </a>
|
|
<div class="element clickable property private property_name" data-toggle="collapse" data-target=".property_name .collapse">
|
|
<h2>The calculation's name, such as `"calc"`.</h2>
|
|
<pre>name : string</pre>
|
|
<div class="labels">
|
|
</div>
|
|
<div class="row collapse">
|
|
<div class="detail-description">
|
|
<div class="long_description"></div>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h3>Type(s)</h3>
|
|
<code>string</code>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<a id="property_arguments"> </a>
|
|
<div class="element clickable property private property_arguments" data-toggle="collapse" data-target=".property_arguments .collapse">
|
|
<h2>The calculation's arguments.</h2>
|
|
<pre>arguments : list<object></pre>
|
|
<div class="labels">
|
|
</div>
|
|
<div class="row collapse">
|
|
<div class="detail-description">
|
|
<div class="long_description"><p>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}.</p>
|
|
</div>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<th>
|
|
var
|
|
</th>
|
|
<td>
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h3>Type(s)</h3>
|
|
<code>array<int, object></code>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<a id="\ScssPhp\ScssPhp\Value\SassCalculation"></a>
|
|
<ul class="breadcrumb">
|
|
<li><a href="index.html"><i class="icon-custom icon-class"></i></a></li>
|
|
|
|
|
|
<li><span class="divider">\</span><a href="\ScssPhp\ScssPhp\Value">Value</a></li>
|
|
|
|
<li class="active"><span class="divider">\</span><a href="\ScssPhp\ScssPhp\Value\SassCalculation">SassCalculation</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<footer class="span12">
|
|
Template is built using <a href="https://getbootstrap.com/">Twitter Bootstrap 2</a> and icons provided by
|
|
<a href="https://glyphicons.com/">Glyphicons</a>.<br/>
|
|
Documentation is powered by <a href="https://www.phpdoc.org/">phpDocumentor </a> and<br/>
|
|
generated on Thu, 21 Nov 2024 01:33:24 +0000.<br/>
|
|
</footer>
|
|
</body>
|
|
</html>
|