| 1 | <?php  | 
            ||
| 10 | class LogicalXorTest extends AbstractBinaryOp  | 
            ||
| 11 | { | 
            ||
| 12 | /**  | 
            ||
| 13 | * @param $a  | 
            ||
| 14 | * @param $b  | 
            ||
| 15 | * @return bool  | 
            ||
| 16 | */  | 
            ||
| 17 | protected function process($a, $b)  | 
            ||
| 18 |     { | 
            ||
| 19 | return $a xor $b;  | 
            ||
| 20 | }  | 
            ||
| 21 | |||
| 22 | /**  | 
            ||
| 23 | * @return array  | 
            ||
| 24 | */  | 
            ||
| 25 | protected function getSupportedTypes()  | 
            ||
| 26 |     { | 
            ||
| 27 | return [  | 
            ||
| 28 | CompiledExpression::INTEGER,  | 
            ||
| 29 | CompiledExpression::DOUBLE,  | 
            ||
| 30 | CompiledExpression::STRING,  | 
            ||
| 31 | CompiledExpression::BOOLEAN,  | 
            ||
| 32 | CompiledExpression::NULL,  | 
            ||
| 33 | ];  | 
            ||
| 34 | }  | 
            ||
| 35 | |||
| 36 | /**  | 
            ||
| 37 | * @param Node\Scalar $a  | 
            ||
| 38 | * @param Node\Scalar $b  | 
            ||
| 39 | * @return Node\Expr\BinaryOp\LogicalXor  | 
            ||
| 40 | */  | 
            ||
| 41 | protected function buildExpression($a, $b)  | 
            ||
| 45 | }  | 
            ||
| 46 |