You are here

public function SassLiteral::op_modulo in Sassy 7.3

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

SassScript '%' operation.

Parameters

SassLiteral value to take the modulus of:

Return value

SassLiteral result

Throws

Exception if modulo not supported for the data type

2 methods override SassLiteral::op_modulo()
SassColour::op_modulo in phpsass/script/literals/SassColour.php
Colour modulus
SassNumber::op_modulo in phpsass/script/literals/SassNumber.php
Takes the modulus (remainder) of this value divided by the value of other

File

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

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_modulo($other) {
  throw new SassLiteralException(get_class($this) . ' does not support Modulus', SassScriptParser::$context->node);
}