checkpoint = $ids['checkpoint']; $this->ledger = $ids['ledger']; $this->measured = $ids['measured']; } /** * Resolve all three from the shared AJAX debug context. * * Read together, in one place, so the three sources cannot be paired with * the wrong scope at a call site. */ public static function fromGlobalContext(): self { return new self(array( 'checkpoint' => ABJ_404_Solution_AjaxDiagnosticRequestPolicy::instrumentedRequestIdFromGlobalContext(), 'ledger' => ABJ_404_Solution_AjaxRequestLedger::requestIdFromGlobalContext(), 'measured' => ABJ_404_Solution_AjaxDiagnosticRequestPolicy::diagnosticRequestIdFromGlobalContext(), )); } /** The instrumented table endpoint's micro-boundary scope, or ''. */ public function checkpoint(): string { return $this->checkpoint; } /** The immutable request ledger's ID, or ''. */ public function ledger(): string { return $this->ledger; } /** The scope a durable size record is written under, or ''. */ public function measured(): string { return $this->measured; } /** * Whether this response carries the instrumented endpoint's micro-boundary * checkpoints. Named because the bare `=== ''` comparison appears at six * branch points and reads as a null check rather than as the gate it is. */ public function hasCheckpoints(): bool { return $this->checkpoint !== ''; } }