Code layout
The module's classes
Four classes, loaded by a minimal autoloader. No Composer dependency.
| Class | Role |
|---|---|
Staging | Environment state, colours, badge position and wording, stylesheet generation. |
UrlReplacer | Column scanning, replacement, serialised-value handling, log. |
Anonymiser | Dry run, sampling and batched execution, maintenance-mode check, log. |
AnonymiseTarget | Declarative description of a target: table, key, rewritten columns, filter, sample columns. |
Adding an anonymisation target means declaring one more instance in
AnonymiseTarget::all(): the engine, the interface and the log pick it up with no
further change.