Files
2026-10-04 15:25:03 +02:00

36 lines
952 B
PHP

<?php
namespace App\Console\Commands\Services;
use App\Console\Commands\Nuh;
use App\Console\Commands\Services\Tasks\GenerateAlarms;
use App\Console\Commands\Services\Tasks\GenerateSetting;
use App\Console\Commands\Services\Tasks\MarketsList;
use App\Console\Commands\Services\Tasks\NotifyAlarms;
use App\Console\Commands\Services\Tasks\TxoddsFlags;
class Services
{
public static function switch()
{
switch (Nuh::$options['name']) {
case 'Txodds Markets':
MarketsList::call();
break;
case 'Txodds Flags':
TxoddsFlags::call();
break;
case 'Generate Setting':
GenerateSetting::run();
break;
case 'Generate Alarms':
GenerateAlarms::run();
break;
case 'Notify Alarms':
NotifyAlarms::run();
break;
}
}
}