PHP 클래스 SassScriptOperation

The operation to perform.
파일 보기 프로젝트 열기: richthegeek/phpsass 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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