PHP Class SassString

Provides operations and type testing for Sass strings.
Inheritance: extends SassLiteral
Afficher le fichier Open project: richthegeek/phpsass Class Usage Examples

Méthodes publiques

Свойство Type Description
$quote string quote type; double or single quotes, or unquoted.

Méthodes publiques

Méthode Description
__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 ( )

Method Details

__construct() public méthode

class constructor
public __construct ( $value ) : SassString
Résultat SassString

getTypeOf() public méthode

public getTypeOf ( )

getValue() public méthode

Returns the value of this string.
public getValue ( ) : string
Résultat string the string

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

op_eq() public méthode

Equals - works better
public op_eq ( $other )

op_plus() public méthode

Concatenates this and other. The resulting string will be quoted in the same way as this.
public op_plus ( $other ) : sassString
Résultat sassString the string result

op_times() public méthode

this is repeated other times
public op_times ( sassNumber $other ) : sassString
$other sassNumber the number of times to repeat this
Résultat sassString the string result

toBoolean() public méthode

Evaluates the value as a boolean.
public toBoolean ( )

toString() public méthode

Returns a string representation of the value.
public toString ( ) : string
Résultat string string representation of the value.

toVar() public méthode

public toVar ( )

Property Details

$quote public_oe property

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