Apply Encapsulation

Use when a class's internal state is accessed or mutated from outside — especially when callers reach into fields directly, when invariants are violated by external setters, or when internal data structures leak into the public API.

jeffreytse Updated
grimoire

File contents

jeffreytse/grimoire-core commit ce04dc7f64

Frequently asked questions

npx get-skill add jeffreytse/apply-encapsulation