src/POData/Providers/Expression/MySQLExpressionProvider.php 1 location
                
                
                    
                                                
                                                    
                                 | 
                                
                                    @@ 190-199 (lines=10) @@
                                 | 
                            
                                                            
                                    | 187 | 
                                     | 
                                         *  | 
                                
                                                            
                                    | 188 | 
                                     | 
                                         * @return string  | 
                                
                                                            
                                    | 189 | 
                                     | 
                                         */  | 
                                
                                                            
                                    | 190 | 
                                     | 
                                        public function onConstantExpression(IType $type, $value)  | 
                                
                                                            
                                    | 191 | 
                                     | 
                                        { | 
                                
                                                            
                                    | 192 | 
                                     | 
                                            if (is_bool($value)) { | 
                                
                                                            
                                    | 193 | 
                                     | 
                                                return var_export($value, true);  | 
                                
                                                            
                                    | 194 | 
                                     | 
                                            } elseif (null === $value) { | 
                                
                                                            
                                    | 195 | 
                                     | 
                                                return var_export(null, true);  | 
                                
                                                            
                                    | 196 | 
                                     | 
                                            }  | 
                                
                                                            
                                    | 197 | 
                                     | 
                                     | 
                                
                                                            
                                    | 198 | 
                                     | 
                                            return strval($value);  | 
                                
                                                            
                                    | 199 | 
                                     | 
                                        }  | 
                                
                                                            
                                    | 200 | 
                                     | 
                                     | 
                                
                                                            
                                    | 201 | 
                                     | 
                                        /**  | 
                                
                                                            
                                    | 202 | 
                                     | 
                                         * Call-back for property access expression.  | 
                                
                                                                        
                 
                                                            
                    
src/POData/Providers/Expression/PHPExpressionProvider.php 1 location
                
                
                    
                                                
                                                    
                                 | 
                                
                                    @@ 203-212 (lines=10) @@
                                 | 
                            
                                                            
                                    | 200 | 
                                     | 
                                         *  | 
                                
                                                            
                                    | 201 | 
                                     | 
                                         * @return string  | 
                                
                                                            
                                    | 202 | 
                                     | 
                                         */  | 
                                
                                                            
                                    | 203 | 
                                     | 
                                        public function onConstantExpression(IType $type, $value)  | 
                                
                                                            
                                    | 204 | 
                                     | 
                                        { | 
                                
                                                            
                                    | 205 | 
                                     | 
                                            if (is_bool($value)) { | 
                                
                                                            
                                    | 206 | 
                                     | 
                                                return var_export($value, true);  | 
                                
                                                            
                                    | 207 | 
                                     | 
                                            } elseif (null === $value) { | 
                                
                                                            
                                    | 208 | 
                                     | 
                                                return var_export(null, true);  | 
                                
                                                            
                                    | 209 | 
                                     | 
                                            }  | 
                                
                                                            
                                    | 210 | 
                                     | 
                                     | 
                                
                                                            
                                    | 211 | 
                                     | 
                                            return strval($value);  | 
                                
                                                            
                                    | 212 | 
                                     | 
                                        }  | 
                                
                                                            
                                    | 213 | 
                                     | 
                                     | 
                                
                                                            
                                    | 214 | 
                                     | 
                                        /**  | 
                                
                                                            
                                    | 215 | 
                                     | 
                                         * Call-back for property access expression.  |