You are here

public function SassLiteral::op_plus in Sassy 7

Same name and namespace in other branches
  1. 7.3 phpsass/script/literals/SassLiteral.php \SassLiteral::op_plus()

* SassScript '+' operation. *

Parameters

sassLiteral value to add: * @return sassString the string values of this and other with no seperation

3 methods override SassLiteral::op_plus()
SassColour::op_plus in phamlp/sass/script/literals/SassColour.php
* Colour addition *
SassNumber::op_plus in phamlp/sass/script/literals/SassNumber.php
* Adds the value of other to the value of this *
SassString::op_plus in phamlp/sass/script/literals/SassString.php
* String addition. * Concatenates this and other. * The resulting string will be quoted in the same way as this. *

File

phamlp/sass/script/literals/SassLiteral.php, line 104

Class

SassLiteral
SassLiteral class. Base class for all Sass literals. Sass data types are extended from this class and these override the operation methods to provide the appropriate semantics. @package PHamlP @subpackage Sass.script.literals

Code

public function op_plus($other) {
  return new SassString($this
    ->toString() . $other
    ->toString());
}