refactor(clickhouse): make retention a readonly constructor property#129
refactor(clickhouse): make retention a readonly constructor property#129levivannoort wants to merge 1 commit into
Conversation
Replace the getRetention/setRetention accessors with a promoted public readonly ?int constructor property. The positive-days check moves into the constructor body. Immutable-after-construction is coroutine-safe; the fluent setter is dropped. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Greptile SummaryThis PR completes a follow-up refactor by replacing the
Confidence Score: 5/5Safe to merge — the change is a clean, well-scoped refactor with no altered runtime behaviour in The promoted No files require special attention. Important Files Changed
Reviews (1): Last reviewed commit: "refactor(clickhouse): make retention a r..." | Re-trigger Greptile |
What
Follow-up to #128. Converts the ClickHouse
retentionconfig from agetRetention()/setRetention()accessor pair to a promotedpublic readonly ?int $retentionconstructor property.Why
Readonly-after-construction is coroutine-safe — no mid-flight mutation of adapter config. Aligns with the style we're standardizing across codebases.
Notes
Internal
$this->retentionusage insetup()is unchanged. Retention tests now build the adapter via the constructor and assert on the property.🤖 Generated with Claude Code