protected function commandShouldBeQueued($command): bool
    {
        if ($command instanceof ShouldQueueContract) {
            return true;
        }

        $reflection = new ReflectionClass($this->getHandlerClass($command));

        return $reflection->implementsInterface(ShouldQueueContract::class);
    }
protected function commandShouldBeQueued($command): bool
    {
        if ($command instanceof ShouldQueueContract) {
            return true;
        }

        $reflection = new ReflectionClass($this->getHandlerClass($command));

        return $reflection->implementsInterface(ShouldQueueContract::class);
    }
protected function commandShouldBeQueued ( $ command ) : bool { if ( $ command instanceof ShouldQueueContract ) { return true ; } $ reflection = new ReflectionClass ( $ this -> getHandlerClass ( $ command ) ) ; return $ reflection -> implementsInterface ( ShouldQueueContract :: class ) ; }
Determine if the given command should be queued.

@param mixed $command

@return bool
Determine if the given command should be queued .