public function SassString::op_plus in Sassy 7
Same name and namespace in other branches
- 7.3 phpsass/script/literals/SassString.php \SassString::op_plus()
* String addition. * Concatenates this and other. * The resulting string will be quoted in the same way as this. *
Parameters
sassString string to add to this: * @return sassString the string result
Overrides SassLiteral::op_plus
File
- phamlp/
sass/ script/ literals/ SassString.php, line 55
Class
- SassString
- SassString class. Provides operations and type testing for Sass strings. @package PHamlP @subpackage Sass.script.literals
Code
public function op_plus($other) {
if (!$other instanceof SassString) {
throw new SassStringException('{what} must be a {type}', array(
'{what}' => Phamlp::t('sass', 'Value'),
'{type}' => Phamlp::t('sass', 'string'),
), SassScriptParser::$context->node);
}
$this->value .= $other->value;
return $this;
}