| Conditions | 1 |
| Paths | 1 |
| Total Lines | 29 |
| Code Lines | 22 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | * @param $b |
||
| 19 | * @return bool |
||
| 20 | */ |
||
| 21 | protected function process($a, $b) |
||
| 22 | { |
||
| 23 | return $a == $b; |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @return array |
||
| 28 | */ |
||
| 29 | protected function getSupportedTypes() |
||
| 30 | { |
||
| 31 | return [ |
||
| 32 | CompiledExpression::INTEGER, |
||
| 33 | CompiledExpression::DOUBLE, |
||
| 34 | CompiledExpression::STRING, |
||
| 35 | CompiledExpression::BOOLEAN, |
||
| 36 | CompiledExpression::NULL, |
||
| 37 | ]; |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @param Node\Scalar $a |
||
| 42 | * @param Node\Scalar $b |
||
| 43 | * @return Node\Expr\BinaryOp\Equal |
||
| 44 | */ |
||
| 45 | protected function buildExpression($a, $b) |
||
| 46 | { |
||
| 47 | return new Node\Expr\BinaryOp\Equal($a, $b); |
||
| 50 |