<?php
declare(strict_types=1);
namespace NetInventors\NetiNextEasyCoupon\Core\Content\Flow\Dispatching\Action;
use Shopware\Core\Content\Flow\Dispatching\Action\FlowAction;
use Symfony\Contracts\EventDispatcher\Event;
/**
* @psalm-suppress DeprecatedClass - There will be major changes in v6.5.0, hence it has been marked deprecated
*
* Will become internal in v6.5.0
* TODO - Must be removed in Shopware version >= 6.5.0.0
*/
abstract class AbstractAction extends FlowAction
{
protected static string $className = '';
public static function getSubscribedEvents(): array
{
return [
self::getName() => 'handle',
];
}
public function requirements(): array
{
return [
self::$className,
];
}
public function handle(Event $event): void
{
if (!$event instanceof self::$className) {
return;
}
}
public static function getName(): string
{
return static::$className;
}
}