public static function queue($enable = null, $handler = null)
    {
        if ($enable === null && $handler === null) {
            return self::$enableQueue;
        }
        if (is_callable($enable)) {
            $handler = $enable;
            $enable = true;
        }
        self::$enableQueue = (bool) $enable;
        if (is_callable($handler)) {
            self::$howToUseQueue = $handler;
        }

        return self::$enableQueue;
    }
public static function queue($enable = null, $handler = null)
    {
        if ($enable === null && $handler === null) {
            return self::$enableQueue;
        }
        if (is_callable($enable)) {
            $handler = $enable;
            $enable = true;
        }
        self::$enableQueue = (bool) $enable;
        if (is_callable($handler)) {
            self::$howToUseQueue = $handler;
        }

        return self::$enableQueue;
    }
public static function queue ( $ enable = null , $ handler = null ) { if ( $ enable === null && $ handler === null ) { return self :: $ enableQueue ; } if ( is_callable ( $ enable ) ) { $ handler = $ enable ; $ enable = true ; } self :: $ enableQueue = ( bool ) $ enable ; if ( is_callable ( $ handler ) ) { self :: $ howToUseQueue = $ handler ; } return self :: $ enableQueue ; }
Set whether to use the queue system,
and define how to use it.

@param bool|\Closure|null $enable
@param \Closure|null      $handler

@return bool
Set whether to use the queue system and define how to use it .