\SassScriptOperation
SassScriptOperation class.
The operation to perform.
Synopsis
class SassScriptOperation
{
- // constants
- const MATCH = '/^(\(|\)|\+|-|\*|\/|%|<=|>=|<|>|==|!=|=|#{|}|,|and\b|or\b|xor\b|not\b)/';
- // members
- public static array $operators = ;
- public static array $inStrOperators = ;
- public static array $defaultOperator = ;
- private $operator;
- private $associativity;
- private $precedence;
- private integer $operandCount = 0;
- // methods
- public SassScriptOperation __construct()
- public mixed __get()
- public SassLiteral perform()
- public static mixed isa()
- public void __toString()
Constants
Name | Value |
---|---|
MATCH | '/^(\(|\)|\+|-|\*|\/|%|<=|>=|<|>|==|!=|=|#{|}|,|and\b|or\b|xor\b|not\b)/' |
Members
private
- $associativity — string
- $operandCount — integer
- $operator — string
- $precedence — integer
public
- $defaultOperator — array
- $inStrOperators — array
- $operators — array
Methods
public
- __construct() — SassScriptOperation constructor
- __get() — Getter function for properties
- __toString() — Converts the operation back into it's SASS representation
- isa() — Returns a value indicating if a token of this type can be matched at the start of the subject string.
- perform() — Performs this operation.