public function __construct( private readonly Context
$context,
private readonly NewsletterRecipientEntity
$newsletterRecipient,
private readonly string
$url,
private readonly string
$salesChannelId ) { } public static function getAvailableData(): EventDataCollection
{ return (new EventDataCollection()) ->
add('newsletterRecipient',
new EntityType(NewsletterRecipientDefinition::
class)) ->
add('url',
new ScalarValueType(ScalarValueType::TYPE_STRING
));
} /**
* @return array<string, scalar|array<mixed>|null>
*/
public function getValues(): array
{ return [FlowMailVariables::URL =>
$this->url
];
}