private readonly MailRecipientStruct
$recipients,
DataBag
$reviewFormData,
private readonly string
$productId,
private readonly string
$customerId ) { $this->reviewFormData =
$reviewFormData->
all();
} public static function getAvailableData(): EventDataCollection
{ return (new EventDataCollection()) ->
add(ReviewFormDataAware::REVIEW_FORM_DATA,
new ObjectType()) ->
add(ProductAware::PRODUCT,
new EntityType(ProductDefinition::
class));
} /**
* @return array<string, scalar|array<mixed>|null>
*/
public function getValues(): array
{ return [FlowMailVariables::REVIEW_FORM_DATA =>
$this->reviewFormData
];
}