PHP Class SassScriptVariable

Datei anzeigen Open project: richthegeek/phpsass Class Usage Examples

Public Methods

Method 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 method

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

evaluate() public method

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

isa() public static method

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
return mixed match at the start of the string or false if no match