lib/Core/StructBuilder/CollectionStructBuilder.php
public function newItemCreateStruct(ItemDefinitionInterface $itemDefinition, $value): ItemCreateStruct
    {
        $struct = new ItemCreateStruct();
        $struct->definition = $itemDefinition;
        $struct->value = $value;

        return $struct;
    }
public function newItemCreateStruct(ItemDefinitionInterface $itemDefinition, $value): ItemCreateStruct
    {
        $struct = new ItemCreateStruct();
        $struct->definition = $itemDefinition;
        $struct->value = $value;

        return $struct;
    }
public function newItemCreateStruct ( ItemDefinitionInterface $ itemDefinition , $ value ) : ItemCreateStruct { $ struct = new ItemCreateStruct ( ) ; $ struct -> definition = $ itemDefinition ; $ struct -> value = $ value ; return $ struct ; }
Creates a new item create struct from provided values.

@param \Netgen\BlockManager\Collection\Item\ItemDefinitionInterface $itemDefinition
@param int|string $value

@return \Netgen\BlockManager\API\Values\Collection\ItemCreateStruct
Creates a new item create struct from provided values .