Re: Proposal: ArraySerializable interface
2013/12/13 Marco Pivetta <ocramius@gmail.com>:
> I'd rather prefer having userland implementations as I mentioned before
> (since it's possible). Casting to (array) actually solves more complex
> problems, while solving the problem of extracting data is fairly simple
Thanks, I understand your use case. Surely, casting to (array) is
faster than ReflectionProperty.
I just came up with adding ObjectHydrator extension is also
interesting solution on your case.
Okay, I'll stop this propose at this time. As there is similar rfc and
that status is in draft: https://wiki.php.net/rfc/object_cast_to_types
I'm sorry about my poor research.
Thanks for the feedbacks.
Shuhei
Thread (10 messages)