public static function SassScriptFunctions::get_var in Sassy 7.3
Same name and namespace in other branches
- 7 phamlp/sass/script/SassScriptFunctions.php \SassScriptFunctions::get_var()
Returns the variable whose name is the string.
Parameters
string String to unquote:
Return value
@throws SassScriptFunctionException If $string is not a string
File
- phpsass/
script/ SassScriptFunctions.php, line 727
Class
- SassScriptFunctions
- SassScript functions class. A collection of functions for use in SassSCript. @package PHamlP @subpackage Sass.script
Code
public static function get_var($string) {
SassLiteral::assertType($string, 'SassString');
return new SassString($string
->toVar());
}