custom/plugins/NetiNextEasyCouponDesigns/src/Core/Content/Flow/Dispatching/Action/AbstractAction.php line 31

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace NetInventors\NetiNextEasyCouponDesigns\Core\Content\Flow\Dispatching\Action;
  4. use Shopware\Core\Content\Flow\Dispatching\Action\FlowAction;
  5. use Symfony\Contracts\EventDispatcher\Event;
  6. /**
  7.  * @psalm-suppress DeprecatedClass - There will be major changes in v6.5.0, hence it has been marked deprecated
  8.  */
  9. abstract class AbstractAction extends FlowAction
  10. {
  11.     protected static string $className '';
  12.     public static function getSubscribedEvents(): array
  13.     {
  14.         return [
  15.             self::getName() => 'handle',
  16.         ];
  17.     }
  18.     public function requirements(): array
  19.     {
  20.         return [
  21.             self::$className,
  22.         ];
  23.     }
  24.     public function handle(Event $event): void
  25.     {
  26.         if (!$event instanceof self::$className) {
  27.             return;
  28.         }
  29.     }
  30.     public static function getName(): string
  31.     {
  32.         return static::$className;
  33.     }
  34. }