PHP Class SassScriptOperation

The operation to perform.
Mostrar archivo Open project: richthegeek/phpsass Class Usage Examples

Public Properties

Property Type Description
$defaultOperator default operator token.
$inStrOperators operators with meaning in uquoted strings; selectors, property names and values
$operators map symbols to tokens. A token is function, associativity, precedence, number of operands

Public Methods

Method Description
__construct ( $operation ) : SassScriptOperation SassScriptOperation constructor
__get ( string $name ) : mixed Getter function for properties
__toString ( ) Converts the operation back into it's SASS representation
isa ( string $subject ) : mixed Returns a value indicating if a token of this type can be matched at the start of the subject string.
perform ( array $operands ) : SassLiteral Performs this operation.

Method Details

__construct() public method

SassScriptOperation constructor
public __construct ( $operation ) : SassScriptOperation
return SassScriptOperation

__get() public method

Getter function for properties
public __get ( string $name ) : mixed
$name string name of property
return mixed value of the property

__toString() public method

Converts the operation back into it's SASS representation
public __toString ( )

isa() public static method

Returns a value indicating if a token of this type can be matched at the start of the subject string.
public static isa ( string $subject ) : mixed
$subject string the subject string
return mixed match at the start of the string or false if no match

perform() public method

Performs this operation.
public perform ( array $operands ) : SassLiteral
$operands array operands for the operation. The operands are SassLiterals
return SassLiteral the result of the operation

Property Details

$defaultOperator public_oe static_oe property

default operator token.
public static $defaultOperator

$inStrOperators public_oe static_oe property

operators with meaning in uquoted strings; selectors, property names and values
public static $inStrOperators

$operators public_oe static_oe property

map symbols to tokens. A token is function, associativity, precedence, number of operands
public static $operators