ProcessDto
The single argument every node's processAction() receives. It carries the message payload, the request/response headers used by the platform, and the routing/result decision the node makes.
use Hanaboso\PipesPhpSdk\Utils\Process\ProcessDto;
Inheritance #
ProcessDtoAbstract -> ProcessDto
Methods provided #
| Method | Returns | Purpose |
|---|---|---|
getJsonData() | array | Parse and return the message payload. |
setJsonData(mixed $value) | self | Replace the payload with serialized JSON. |
getData() | string | Raw body. |
setData(string $value) | self | Set raw body. |
getHeaders() | array | Inbound message headers. |
setHeaders(array $headers) | self | Replace the header map. |
addHeader(string $key, string $value) | self | Add or overwrite one header. |
setStopProcess(int $code, string $reason) | self | End this branch. See ProcessDtoAbstract. |
See also #
- BatchProcessDto
- ProcessDtoAbstract
- Node.js equivalent:
ProcessDto