src/Query/Traits/JoinTrait.php
private function onWhereWrapper()
    {
        return function ($parameter) {
            if ($parameter instanceof FragmentInterface) {
                //We are only not creating bindings for plan fragments
                if (!$parameter instanceof ParameterInterface && !$parameter instanceof BuilderInterface) {
                    return $parameter;
                }
            }

            if (is_array($parameter)) {
                throw new BuilderException('Arrays must be wrapped with Parameter instance');
            }

            //Wrapping all values with ParameterInterface
            if (!$parameter instanceof ParameterInterface && !$parameter instanceof ExpressionInterface) {
                $parameter = new Parameter($parameter, Parameter::DETECT_TYPE);
            };

            //Let's store to sent to driver when needed
            $this->onParameters[] = $parameter;

            return $parameter;
        };
    }
private function onWhereWrapper()
    {
        return function ($parameter) {
            if ($parameter instanceof FragmentInterface) {
                //We are only not creating bindings for plan fragments
                if (!$parameter instanceof ParameterInterface && !$parameter instanceof BuilderInterface) {
                    return $parameter;
                }
            }

            if (is_array($parameter)) {
                throw new BuilderException('Arrays must be wrapped with Parameter instance');
            }

            //Wrapping all values with ParameterInterface
            if (!$parameter instanceof ParameterInterface && !$parameter instanceof ExpressionInterface) {
                $parameter = new Parameter($parameter, Parameter::DETECT_TYPE);
            };

            //Let's store to sent to driver when needed
            $this->onParameters[] = $parameter;

            return $parameter;
        };
    }
private function onWhereWrapper ( ) { return function ( $ parameter ) { if ( $ parameter instanceof FragmentInterface ) { //We are only not creating bindings for plan fragments if ( ! $ parameter instanceof ParameterInterface && ! $ parameter instanceof BuilderInterface ) { return $ parameter ; } } if ( is_array ( $ parameter ) ) { throw new BuilderException ( 'Arrays must be wrapped with Parameter instance' ) ; } //Wrapping all values with ParameterInterface if ( ! $ parameter instanceof ParameterInterface && ! $ parameter instanceof ExpressionInterface ) { $ parameter = new Parameter ( $ parameter , Parameter :: DETECT_TYPE ) ; } ; //Let's store to sent to driver when needed $ this -> onParameters [ ] = $ parameter ; return $ parameter ; } ; }
Applied to every potential parameter while ON WHERE tokens generation.

@return \Closure
Applied to every potential parameter while ON WHERE tokens generation .