if (!
$event instanceof CustomerGroupAware ||
isset($stored[CustomerGroupAware::CUSTOMER_GROUP_ID
])) { return $stored;
} $stored[CustomerGroupAware::CUSTOMER_GROUP_ID
] =
$event->
getCustomerGroupId();
return $stored;
} public function restore(StorableFlow
$storable): void
{ if (!
$storable->
hasStore(CustomerGroupAware::CUSTOMER_GROUP_ID
)) { return;
} $storable->
setData(CustomerGroupAware::CUSTOMER_GROUP_ID,
$storable->
getStore(CustomerGroupAware::CUSTOMER_GROUP_ID
));
$storable->
lazy( CustomerGroupAware::CUSTOMER_GROUP,
$this->
lazyLoad(...
) );
}