custom/plugins/SwagPayPal/src/Checkout/Payment/ScheduledTask/CancelTransactionsTask.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\Checkout\Payment\ScheduledTask;
  8. use Shopware\Core\Framework\MessageQueue\ScheduledTask\ScheduledTask;
  9. class CancelTransactionsTask extends ScheduledTask
  10. {
  11.     private const TIME_INTERVAL_DAILY 86400;
  12.     public static function getTaskName(): string
  13.     {
  14.         return 'swag_paypal.cancel_transactions';
  15.     }
  16.     public static function getDefaultInterval(): int
  17.     {
  18.         return self::TIME_INTERVAL_DAILY;
  19.     }
  20. }