Custom object storage

Is there any way to storage (and access) custom variable with my class? For example I need to access the same zendobjectiterator from many places inside my class with %{ closure. Example:


zendobjectiterator *iterator;

zendclassentry *ce;

ce = ZOBJCEP(result);

this->iterator = ce->getiterator(ce, result, 0 TSRMLSCC);


I read about custom object storage here: but i don't have any idea how to implement same solution beside zephir.

This is not implemented in Zephir currently