You are here

public function SassLiteral::op_times in Sassy 7

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

* SassScript '*' operation. *

Parameters

SassLiteral value to multiply by: * @return sassString the string values of this and other seperated by '*'

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

File

phamlp/sass/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());
}