BatchProcessDto

The argument BatchAbstract::processAction() receives. Extends ProcessDto with methods for emitting downstream items and managing the pagination cursor.

use Hanaboso\PipesPhpSdk\Utils\Process\BatchProcessDto;

Inheritance #

ProcessDtoAbstract -> ProcessDto -> BatchProcessDto

Methods added #

MethodReturnsPurpose
addItem($payload)selfEmit one downstream message.
addItemFromArray(array $payload)selfSame, typed for arrays.
setItemList(array $items)selfShred the array: each element becomes one downstream message.
setItemList(array $items, true)selfWrap as a single message instead.
getBatchCursor()?stringCursor value the platform passed in for the next iteration.
setBatchCursor(string $cursor)selfIterate again. Items already emitted flow downstream immediately.
setBatchCursor(string $cursor, true)selfIterate again, hold items until the iteration completes.

See also #

© 2025 Orchesty Solutions. All rights reserved.