3 class Kint_Parsers_objectIterateable extends kintParser
5 protected function _parse( & $variable )
8 || !is_object( $variable )
9 || !$variable instanceof Traversable
10 || stripos( get_class( $variable ), 'zend' ) !== false // zf2 PDO wrapper does not play nice
14 $arrayCopy = iterator_to_array( $variable, true );
16 if ( $arrayCopy === false ) return false;
18 $this->value = kintParser::factory( $arrayCopy )->extendedValue;
19 $this->type = 'Iterator contents';
20 $this->size = count( $arrayCopy );