You are here

public function SassLiteral::op_modulo in Sassy 7

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

* SassScript '%' operation. *

Parameters

SassLiteral value to take the modulus of: * @return SassLiteral result * @throws Exception if modulo not supported for the data type

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

File

phamlp/sass/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('{class} does not support {operation}.', array(
    '{class}' => get_class($this),
    '{operation}' => Phamlp::t('sass', 'Modulus'),
  ), SassScriptParser::$context->node);
}