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

IteratorAggregate, ArrayAccess, Countable #51

Closed
Surt opened this issue Dec 13, 2011 · 6 comments
Closed

IteratorAggregate, ArrayAccess, Countable #51

Surt opened this issue Dec 13, 2011 · 6 comments
Milestone

Comments

@Surt
Copy link
Contributor

Surt commented Dec 13, 2011

Would be great to implement that interfaces instead the actual set, get.
Not instead, I mean "in addition"

@treffynnon
Copy link
Collaborator

Extending ArrayObject would be the preferable route here I think.

@tag
Copy link
Contributor

tag commented Nov 29, 2012

I can kinda see a use for this in Idiorm, but now with the introduction of ::as_array(), I'm not sure it's necessary. It's less clear to me how this would be useful in Paris.

@treffynnon
Copy link
Collaborator

@tag see j4mie/paris#14 for an example of its use in Paris. In Idiorm I think this would complement as_array nicely and in v2 probably replace it all together in preference to:

$array = (array) $orm_instance;

@treffynnon
Copy link
Collaborator

ArrayAccess added for ORM property access in commit 598927d

@treffynnon
Copy link
Collaborator

Added in commit 5a6d20c

@sanmayad
Copy link

Asking to implement Countable Interface after PHP 7.2

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

No branches or pull requests

4 participants