Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access the $items property in the Structure class #35

Open
ncou opened this issue Dec 12, 2020 · 3 comments
Open

Access the $items property in the Structure class #35

ncou opened this issue Dec 12, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@ncou
Copy link

ncou commented Dec 12, 2020

Hi,

Nice piece of code. Do you think there is a way to access the $items property in the Structure::class ?
I use this value in 2 cases :

  1. Force the castTo('array') for all the structure and sub-structures.
  2. I need to enforce the key value used to be only in the range ['a-z0-9_'].

For the moment i do a reflection and i access the private property, but a public function getItems() could be usefull. Or perhaps an "iterator" inside the structure class.

What do you think about this feature, this could add more flexibility using this great library.

Keep up the good work.

@dg
Copy link
Member

dg commented Dec 18, 2020

I will add an API for accessing private values in next version (it is also related to #1).

@ncou
Copy link
Author

ncou commented Dec 18, 2020

good news ! thank you for the quick answer.

@dg dg added the enhancement New feature or request label Jan 21, 2021
@ncou
Copy link
Author

ncou commented May 14, 2021

Hi @dg, do we have an estimated date for this release ? Thanks.
Keep up the good work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants