File: /var/www/ipsremont-demo/app/Console/Commands/Pek.php
<?php
namespace App\Console\Commands;
use App\Services\Pek\PekService;
use Illuminate\Console\Command;
class Pek extends Command
{
protected $signature = 'pek:integrate {--limit=}';
public function __construct()
{
parent::__construct();
}
public function handle()
{
// $limit = ($this->option('limit')) ? $this->option('limit') : 100;
// $shipments = ShipmentService::getekShipments($limit);
// $pek = new PekService();
// foreach($shipments as $shipment) {
// $pek->getStatuses($shipment);
// }
$pek = new PekService();
$pek->getStatuses('');
}
}