You are here

public static function SassScriptFunctions::get_var in Sassy 7

Same name and namespace in other branches
  1. 7.3 phpsass/script/SassScriptFunctions.php \SassScriptFunctions::get_var()

* Returns the variable whose name is the string. *

Parameters

string String to unquote: * @return * @throws SassScriptFunctionException If $string is not a string

File

phamlp/sass/script/SassScriptFunctions.php, line 720

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());
}