PHP Класс SassString

Provides operations and type testing for Sass strings.
Наследование: extends SassLiteral
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$quote string quote type; double or single quotes, or unquoted.

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

Метод Описание
__construct ( $value ) : SassString class constructor
getTypeOf ( )
getValue ( ) : string Returns the value of this string.
isa ( $subject ) : mixed Returns a value indicating if a token of this type can be matched at the start of the subject string.
op_eq ( $other ) Equals - works better
op_plus ( $other ) : sassString String addition.
op_times ( sassNumber $other ) : sassString String multiplication.
toBoolean ( ) Evaluates the value as a boolean.
toString ( ) : string Returns a string representation of the value.
toVar ( )

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

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

class constructor
public __construct ( $value ) : SassString
Результат SassString

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

public getTypeOf ( )

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

Returns the value of this string.
public getValue ( ) : string
Результат string the string

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

Returns a value indicating if a token of this type can be matched at the start of the subject string.
public static isa ( $subject ) : mixed
Результат mixed match at the start of the string or false if no match

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

Equals - works better
public op_eq ( $other )

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

Concatenates this and other. The resulting string will be quoted in the same way as this.
public op_plus ( $other ) : sassString
Результат sassString the string result

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

this is repeated other times
public op_times ( sassNumber $other ) : sassString
$other sassNumber the number of times to repeat this
Результат sassString the string result

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

Evaluates the value as a boolean.
public toBoolean ( )

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

Returns a string representation of the value.
public toString ( ) : string
Результат string string representation of the value.

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

public toVar ( )

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

$quote публичное свойство

string quote type; double or single quotes, or unquoted.
public $quote