custom/plugins/SwagPayPal/src/Pos/Schedule/InventorySyncTask.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 InventorySyncTask extends ScheduledTask
  10. {
  11.     private const TIME_INTERVAL_FIVE_MINUTES 300;
  12.     public static function getTaskName(): string
  13.     {
  14.         return 'swag_paypal.pos_inventory_sync';
  15.     }
  16.     public static function getDefaultInterval(): int
  17.     {
  18.         return self::TIME_INTERVAL_FIVE_MINUTES;
  19.     }
  20. }