src/Mappable.php
protected function getMappedWhereConstraint($method, ArgumentBag $args)
    {
        return function ($query) use ($method, $args) {
            call_user_func_array([$query, $method], $args->all());
        };
    }
protected function getMappedWhereConstraint($method, ArgumentBag $args)
    {
        return function ($query) use ($method, $args) {
            call_user_func_array([$query, $method], $args->all());
        };
    }
protected function getMappedWhereConstraint ( $ method , ArgumentBag $ args ) { return function ( $ query ) use ( $ method , $ args ) { call_user_func_array ( [ $ query , $ method ] , $ args -> all ( ) ) ; } ; }
Get the relation constraint closure.

@param  string $method
@param  \Sofa\Hookable\Contracts\ArgumentBag $args
@return \Closure
Get the relation constraint closure .