PHP Class SassScriptOperation

The operation to perform.
Afficher le fichier Open project: richthegeek/phpsass Class Usage Examples

Méthodes publiques

Свойство 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

Méthodes publiques

Méthode 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 méthode

SassScriptOperation constructor
public __construct ( $operation ) : SassScriptOperation
Résultat SassScriptOperation

__get() public méthode

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

__toString() public méthode

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

isa() public static méthode

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
Résultat mixed match at the start of the string or false if no match

perform() public méthode

Performs this operation.
public perform ( array $operands ) : SassLiteral
$operands array operands for the operation. The operands are SassLiterals
Résultat 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