use Shopware\Core\Framework\Event\FlowEventAware;
/**
* @internal
*/
class StructuredObjectBusinessEvent implements FlowEventAware, BusinessEventEncoderTestInterface
{ private readonly ScalarBusinessEvent
$inner;
public function __construct() { $this->inner =
new ScalarBusinessEvent();
} public static function getAvailableData(): EventDataCollection
{ return (new EventDataCollection()) ->
add( 'inner',
(new ObjectType()) ->
add('string',
new ScalarValueType(ScalarValueType::TYPE_STRING
)) ->
add('bool',
new ScalarValueType(ScalarValueType::TYPE_BOOL
)) ->
add('int',
new ScalarValueType(ScalarValueType::TYPE_INT
))