You are here

public function SassLiteral::op_times in Sassy 7.3

Same name and namespace in other branches
  1. 7 phamlp/sass/script/literals/SassLiteral.php \SassLiteral::op_times()

SassScript '*' operation.

Parameters

SassLiteral value to multiply by:

Return value

sassString the string values of this and other seperated by '*'

3 methods override SassLiteral::op_times()
SassColour::op_times in phpsass/script/literals/SassColour.php
Colour multiplication
SassNumber::op_times in phpsass/script/literals/SassNumber.php
Multiplies this value by the value of other
SassString::op_times in phpsass/script/literals/SassString.php
String multiplication. this is repeated other times

File

phpsass/script/literals/SassLiteral.php, line 122

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_times($other) {
  return new SassString($this
    ->toString() . '*' . $other
    ->toString());
}