public static function SassScriptFunctions::quote in Sassy 7
Same name and namespace in other branches
- 7.3 phpsass/script/SassScriptFunctions.php \SassScriptFunctions::quote()
* Add quotes to a string if the string isn't quoted, * or returns the same string if it is. *
Parameters
string String to quote: * @return new SassString Quoted string * @throws SassScriptFunctionException If $string is not a string * @see unquote
File
- phamlp/
sass/ script/ SassScriptFunctions.php, line 696
Class
- SassScriptFunctions
- SassScript functions class. A collection of functions for use in SassSCript. @package PHamlP @subpackage Sass.script
Code
public static function quote($string) {
SassLiteral::assertType($string, 'SassString');
return new SassString('"' . $string->value . '"');
}