You are here

public function SassString::op_plus in Sassy 7.3

Same name and namespace in other branches
  1. 7 phamlp/sass/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 value

sassString the string result

Overrides SassLiteral::op_plus

File

phpsass/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('Value must be a string', SassScriptParser::$context->node);
  }
  $this->value .= $other->value;
  return $this;
}