You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes it becomes useful to store the value of a class's magic properties internally, so this minor patch release introduced the __prop internal property, which can be access by any class using the MagicProp trait.
PropFunc is heavily used in php.gt/dom due to the reliance on a the W3C specification. There have been minor improvements made since it was integrated within Dom, so now v1 is being released to allow Dom to get ready for its next stable release.
This release finalises the way private/protected values should be accessed via the magic methods. Now if a class needs one of its public properties changing to read-only, it can do by making the property private/protected and implementing the magic getter.
The simple functionality of the repository is now tested. The main plans are for using with PHP.Gt/Dom, so before v1 is released it will be battle-tested in a few real world applications.