src/JsonQueriable.php
public static function macro($name, callable $fn)
    {
        if (!in_array($name, self::$_rulesMap)) {
            self::$_rulesMap[$name] = $fn;
            return true;
        }

        return false;
    }
public static function macro($name, callable $fn)
    {
        if (!in_array($name, self::$_rulesMap)) {
            self::$_rulesMap[$name] = $fn;
            return true;
        }

        return false;
    }
public static function macro ( $ name , callable $ fn ) { if ( ! in_array ( $ name , self :: $ _rulesMap ) ) { self :: $ _rulesMap [ $ name ] = $ fn ; return true ; } return false ; }
make macro for custom where clause

@param string $name
@param callable $fn
@return bool
make macro for custom where clause