Files
nuhodds_fi4/app/Console/Commands/Grapper/Betsapi.php
T
2026-10-04 15:25:03 +02:00

48 lines
1.3 KiB
PHP

<?php
namespace App\Console\Commands\Grapper;
use App\Console\Commands\Grapper\Betsapi\Bet365;
use App\Console\Commands\Grapper\Betsapi\Bwin;
use App\Console\Commands\Grapper\Betsapi\ElementIcons;
use App\Console\Commands\Grapper\Betsapi\Fixtures;
use App\Console\Commands\Grapper\Betsapi\Odds;
use App\Console\Commands\Grapper\Betsapi\Willhill;
use App\Console\Commands\Nuh;
use App\Utilities\Notice;
class Betsapi
{
public static function switch()
{
$debug = Nuh::$options['d'] ?? 0;
if ($debug) {
Notice::note(Nuh::$options['provider'].' '.Nuh::$options['name'], 'b');
}
switch (Nuh::$options['name']) {
case 'Fixtures':
Fixtures::grap();
break;
case 'Odds':
Odds::grap();
break;
case 'Willhill':
Willhill::grap();
break;
case 'Bwin':
Bwin::grap();
break;
case 'Bet365':
Bet365::grap();
break;
case 'Element Icons':
ElementIcons::grap();
break;
default:
Notice::note('prosses name does not exist', 'r', 1);
break;
}
}
}