You are here

public function SassLiteral::op_bw_xor in Sassy 7

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

* Bitwise XOR the value of other and the value of this *

Parameters

SassNumber value to bitwise XOR with: * @return string result * @throws Exception if bitwise XOR not supported for the data type

1 method overrides SassLiteral::op_bw_xor()
SassColour::op_bw_xor in phamlp/sass/script/literals/SassColour.php
* Colour bitwise XOR *

File

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

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_bw_xor($other) {
  throw new SassLiteralException('{class} does not support {operation}.', array(
    '{class}' => get_class($this),
    '{operation}' => Phamlp::t('sass', 'Bitwise XOR'),
  ), SassScriptParser::$context->node);
}