EffectKind
The kind of side effect one Effect ledger entry records.
Each value is the seam a recording decorator observes and a stub answers from during isolated replay.
Mail has no recorder yet — Quiote has no mail subsystem to instrument — but the case is reserved now so a future one needs no cassette format change.
Synopsis
Section titled “Synopsis”enum EffectKind: string
| Source | Cassette/EffectKind.php |
| Case | Value | Description |
|---|---|---|
Db | 'db' | |
Http | 'http' | |
Cache | 'cache' | |
Queue | 'queue' | |
Mail | 'mail' | |
Clock | 'clock' | |
Entropy | 'entropy' | |
Env | 'env' | |
Session | 'session' |
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
$name | string | readonly. |
$value | string | readonly. |
Methods
Section titled “Methods”| Method | Description |
|---|---|
cases(): array | |
| [`from(string | int $value): static`](#from) |
| [`tryFrom(string | int $value): ?static`](#tryfrom) |
cases()
Section titled “cases()”public static function cases(): array
Returns array
from()
Section titled “from()”public static function from(string|int $value): static
| Parameter | Type | Description |
|---|---|---|
$value | `string“ | “int` |
Returns static
tryFrom()
Section titled “tryFrom()”public static function tryFrom(string|int $value): ?static
| Parameter | Type | Description |
|---|---|---|
$value | `string“ | “int` |
Returns ?``static