Skip to content

Conversation

@jrfnl
Copy link
Member

@jrfnl jrfnl commented Oct 15, 2022

Tokens\Collections: internal change

As much as possible, make all methods use (private) properties for the actual token arrays.

Includes fixing up a few references to the ooHierarchyKeywords() method, which should reference the property.

Tokens\Collections: update documentation

Move most pertinent documentation to the properties and remove it from the methods in anticipation of removing most methods in favour of using a __callStatic() magic method.

Includes minor doc fixes.

Tokens\Collections: use magic __callStatic() method

... for all methods without logic and where there has been no name-change between the (now deprecated) property and the replacement method.

Includes simplifying the related tests.

jrfnl added 3 commits October 15, 2022 04:45
As much as possible, make all methods use (`private`) properties for the actual token arrays.

Includes fixing up a few references to the `ooHierarchyKeywords()` method, which should reference the property.
Move most pertinent documentation to the properties and remove it from the methods in anticipation of removing most methods in favour of using a `__callStatic()` magic method.

Includes minor doc fixes.
... for all methods without logic and where there has been no name-change between the (now deprecated) property and the replacement method.

Includes simplifying the related tests.
@jrfnl jrfnl added this to the 1.0.0-alpha4 milestone Oct 15, 2022
@jrfnl jrfnl merged commit 28794c7 into develop Oct 15, 2022
@jrfnl jrfnl deleted the feature/collections-simplify-and-clean-up branch October 15, 2022 02:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants