custom/plugins/SwagPayPal/src/Pos/Schedule/CompleteSyncTask.php line 12

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. /*
  3.  * (c) shopware AG <info@shopware.com>
  4.  * For the full copyright and license information, please view the LICENSE
  5.  * file that was distributed with this source code.
  6.  */
  7. namespace Swag\PayPal\Pos\Schedule;
  8. use Shopware\Core\Framework\MessageQueue\ScheduledTask\ScheduledTask;
  9. class CompleteSyncTask extends ScheduledTask
  10. {
  11.     private const TIME_INTERVAL_ONE_HOUR 3600;
  12.     public static function getTaskName(): string
  13.     {
  14.         return 'swag_paypal.pos_complete_sync';
  15.     }
  16.     public static function getDefaultInterval(): int
  17.     {
  18.         return self::TIME_INTERVAL_ONE_HOUR;
  19.     }
  20. }