final |
|---|
readonly |
Represents the semantic result of handling an intent.
Mental model: "This is what should happen next."
An IntentResult does NOT describe UI implementation details,
only the next semantic step. The {@see $type} is a closed
{@see IntentResultType} vocabulary; it serializes to its string value on
the wire (response()->json() → {"type":"open", …}).
| Methods | ||
|---|---|---|
public
|
__construct(IntentResultType $type, array $payload = [])
|
# |
public
static
|
open(string $target, array $params = []): self
|
# |
public
static
|
dialog(string $app, string $dialogView): self
|
# |
public
static
|
valueHelp(string $app, string $view, string $entitySet): self
|
# |
public
static
|
dispatch(IntentInterface $intent): self
|
# |
public
static
|
redirect(string $url): self
|
# |
public
static
|
message(string $level, string $text): self
|
# |
public
static
|
deny(string $reason): self
|
# |
| Properties | |||
|---|---|---|---|
public
|
IntentResultType
|
$type
|
# |
public
|
array
|
$payload
|
# |