6 declare(strict_types=1);
     8 use Magento\Catalog\Api\Data\ProductInterfaceFactory;
    15 use Magento\Bundle\Api\Data\OptionInterfaceFactory;
    16 use Magento\Bundle\Api\Data\LinkInterfaceFactory;
    35             'attribute_set_id' => 4,
    36             'type_id'          => Type::TYPE_BUNDLE,
    37             'sku'              => 
'SKU-BUNDLE-1',
    38             'name'             => 
'Bundle Product Blue',
    39             'status'           => Status::STATUS_ENABLED,
    40             'stock_data'       => [
'is_in_stock' => 
true]
    42         'custom_attributes' => [
    43             'price_type'    => Price::PRICE_TYPE_DYNAMIC,
    44             'shipment_type' => AbstractType::SHIPMENT_SEPARATELY,
    52                 'title' => 
'Simple Product Orange'    57                 'title' => 
'Simple Product Blue'    63             'attribute_set_id' => 4,
    64             'type_id'          => Type::TYPE_BUNDLE,
    65             'sku'              => 
'SKU-BUNDLE-2',
    66             'name'             => 
'Bundle Product White',
    67             'status'           => Status::STATUS_ENABLED,
    68             'stock_data'       => [
'is_in_stock' => 
true]
    70         'custom_attributes' => [
    71             'price_type'    => Price::PRICE_TYPE_DYNAMIC,
    72             'shipment_type' => AbstractType::SHIPMENT_TOGETHER,
    80                 'title' => 
'Simple Product White'    85                 'title' => 
'Simple Product Blue'   105         $link->setCanChangeQuantity(1);
 
$extensionAttributesFactory