PHP Класс SassScriptOperation

The operation to perform.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$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

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный Метод

SassScriptOperation constructor
public __construct ( $operation ) : SassScriptOperation
Результат SassScriptOperation

__get() публичный Метод

Getter function for properties
public __get ( string $name ) : mixed
$name string name of property
Результат mixed value of the property

__toString() публичный Метод

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

isa() публичный статический Метод

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
Результат mixed match at the start of the string or false if no match

perform() публичный Метод

Performs this operation.
public perform ( array $operands ) : SassLiteral
$operands array operands for the operation. The operands are SassLiterals
Результат SassLiteral the result of the operation

Описание свойств

$defaultOperator публичное статическое свойство

default operator token.
public static $defaultOperator

$inStrOperators публичное статическое свойство

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

$operators публичное статическое свойство

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