lib/Core/StructBuilder/CollectionStructBuilder.php
public function newItemUpdateStruct(?Item $item = null): ItemUpdateStruct
    {
        $itemUpdateStruct = new ItemUpdateStruct();

        if (!$item instanceof Item) {
            return $itemUpdateStruct;
        }

        $this->configStructBuilder->buildConfigUpdateStructs($item, $itemUpdateStruct);

        return $itemUpdateStruct;
    }
public function newItemUpdateStruct(?Item $item = null): ItemUpdateStruct
    {
        $itemUpdateStruct = new ItemUpdateStruct();

        if (!$item instanceof Item) {
            return $itemUpdateStruct;
        }

        $this->configStructBuilder->buildConfigUpdateStructs($item, $itemUpdateStruct);

        return $itemUpdateStruct;
    }
public function newItemUpdateStruct ( ? Item $ item = null ) : ItemUpdateStruct { $ itemUpdateStruct = new ItemUpdateStruct ( ) ; if ( ! $ item instanceof Item ) { return $ itemUpdateStruct ; } $ this -> configStructBuilder -> buildConfigUpdateStructs ( $ item , $ itemUpdateStruct ) ; return $ itemUpdateStruct ; }
Creates a new item update struct.

If item is provided, initial data is copied from the item.
Creates a new item update struct .