You are here

public function SassLiteral::op_xor in Sassy 7.3

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

The SassScript xor operation.

Parameters

sassLiteral the value to xor with this:

Return value

SassBoolean SassBoolean object with the value true if this or other, but not both, are true, false if not

File

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

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_xor($other) {
  return new SassBoolean($this
    ->toBoolean() xor $other
    ->toBoolean());
}