/**
* @param array<string, mixed> $stored
*
* @return array<string, mixed>
*/
public function store(FlowEventAware
$event, array
$stored): array
{ if (!
$event instanceof NewsletterRecipientAware ||
isset($stored[NewsletterRecipientAware::NEWSLETTER_RECIPIENT_ID
])) { return $stored;
} $stored[NewsletterRecipientAware::NEWSLETTER_RECIPIENT_ID
] =
$event->
getNewsletterRecipientId();
return $stored;
} public function restore(StorableFlow
$storable): void
{ if (!
$storable->
hasStore(NewsletterRecipientAware::NEWSLETTER_RECIPIENT_ID
)) { return;
} $storable->
lazy(