PayloadAware
- Full name:
\Codefy\CommandBus\Traits\PayloadAware
Properties
payload
REQUIRED_FIELDS
- This property is static.
ALLOWED_FIELDS
- This property is static.
Methods
__construct
Parameters:
Parameter | Type | Description |
---|---|---|
$payload | array |
fromPayload
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$payload | array |
with
Parameters:
Parameter | Type | Description |
---|---|---|
$key | string | |
$value | mixed |
without
Parameters:
Parameter | Type | Description |
---|---|---|
$key | string |
get
Parameters:
Parameter | Type | Description |
---|---|---|
$key | string | |
$default | mixed |
getOrFail
Parameters:
Parameter | Type | Description |
---|---|---|
$key | string |
Throws:
payload
validate
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$payload | array |
Throws:
Automatically generated on 2025-10-13