public function getScheduledCommands()
    {
        $scheduledCommands = [];
        foreach ($this->console->all() as $command) {
            if ($command instanceof ScheduledCommandInterface) {
                $scheduledCommands[] = $command;
            }
        }

        return $scheduledCommands;
    }
public function getScheduledCommands()
    {
        $scheduledCommands = [];
        foreach ($this->console->all() as $command) {
            if ($command instanceof ScheduledCommandInterface) {
                $scheduledCommands[] = $command;
            }
        }

        return $scheduledCommands;
    }
public function getScheduledCommands ( ) { $ scheduledCommands = [ ] ; foreach ( $ this -> console -> all ( ) as $ command ) { if ( $ command instanceof ScheduledCommandInterface ) { $ scheduledCommands [ ] = $ command ; } } return $ scheduledCommands ; }
Get all commands that are scheduled

@return \Indatus\Dispatcher\Scheduling\ScheduledCommandInterface[]
Get all commands that are scheduled