| @@ 169-181 (lines=13) @@ | ||
| 166 | *  | 
                                |
| 167 | * @return string  | 
                                |
| 168 | */  | 
                                |
| 169 | public function onUnaryExpression($expressionType, $child)  | 
                                |
| 170 |     { | 
                                |
| 171 |         switch ($expressionType) { | 
                                |
| 172 | case ExpressionType::NEGATE:  | 
                                |
| 173 | return $this->_prepareUnaryExpression(self::NEGATE, $child);  | 
                                |
| 174 | ||
| 175 | case ExpressionType::NOT_LOGICAL:  | 
                                |
| 176 | return $this->_prepareUnaryExpression(self::LOGICAL_NOT, $child);  | 
                                |
| 177 | ||
| 178 | default:  | 
                                |
| 179 |                 throw new \InvalidArgumentException('onUnaryExpression'); | 
                                |
| 180 | }  | 
                                |
| 181 | }  | 
                                |
| 182 | ||
| 183 | /**  | 
                                |
| 184 | * Call-back for constant expression.  | 
                                |
| @@ 178-190 (lines=13) @@ | ||
| 175 | *  | 
                                |
| 176 | * @return string  | 
                                |
| 177 | */  | 
                                |
| 178 | public function onUnaryExpression($expressionType, $child)  | 
                                |
| 179 |     { | 
                                |
| 180 |         switch ($expressionType) { | 
                                |
| 181 | case ExpressionType::NEGATE:  | 
                                |
| 182 | return $this->_prepareUnaryExpression(self::NEGATE, $child);  | 
                                |
| 183 | ||
| 184 | case ExpressionType::NOT_LOGICAL:  | 
                                |
| 185 | return $this->_prepareUnaryExpression(self::LOGICAL_NOT, $child);  | 
                                |
| 186 | ||
| 187 | default:  | 
                                |
| 188 |                 throw new \InvalidArgumentException('onUnaryExpression'); | 
                                |
| 189 | }  | 
                                |
| 190 | }  | 
                                |
| 191 | ||
| 192 | /**  | 
                                |
| 193 | * Call-back for constant expression.  | 
                                |