PHP Class SassScriptVariable

Afficher le fichier Open project: richthegeek/phpsass Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( string $value ) SassVariable constructor
evaluate ( SassContext $context ) : SassLiteral Returns the SassScript object for this variable.
isa ( string $subject ) : mixed Returns a value indicating if a token of this type can be matched at the start of the subject string.

Method Details

__construct() public méthode

SassVariable constructor
public __construct ( string $value )
$value string value of the Variable type

evaluate() public méthode

Returns the SassScript object for this variable.
public evaluate ( SassContext $context ) : SassLiteral
$context SassContext context of the variable
Résultat SassLiteral the SassScript object for this variable

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