Skip to content

[Schema] Make Page a plain value object instead of extending ArrayObject - #38

Open
chr-hertel wants to merge 1 commit into
mainfrom
fix/issue-17-page-arrayobject
Open

chr-hertel wants to merge 1 commit into
mainfrom
fix/issue-17-page-arrayobject

Conversation

@chr-hertel

Copy link
Copy Markdown
Owner

Drops the \ArrayObject inheritance from Page: no more duplicated storage, public mutators on a readonly value object, or ARRAY_AS_PROPS property/item ambiguity. No caller iterated, counted, or array-accessed a Page — all consumers use the references and nextCursor properties — so no interface is needed. The four assertCount calls in RegistryTest now count ->references, and a PageTest covers the value object.

Closes #17

Confidence: 9/10 — all Page consumers verified via grep to use only the readonly properties; full unit suite, php-cs-fixer, and phpstan are green.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[B3] Page extends \ArrayObject

1 participant