Skip to content

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.

enum EffectKind: string

SourceCassette/EffectKind.php
CaseValueDescription
Db'db'
Http'http'
Cache'cache'
Queue'queue'
Mail'mail'
Clock'clock'
Entropy'entropy'
Env'env'
Session'session'
PropertyTypeDescription
$namestringreadonly.
$valuestringreadonly.
MethodDescription
cases(): array
[`from(stringint $value): static`](#from)
[`tryFrom(stringint $value): ?static`](#tryfrom)

public static function cases(): array

Returns array

public static function from(string|int $value): static

ParameterTypeDescription
$value`string““int`

Returns static

public static function tryFrom(string|int $value): ?static

ParameterTypeDescription
$value`string““int`

Returns ?``static