3 class Kint_Parsers_SplObjectStorage extends kintParser
5 protected function _parse( & $variable )
7 if ( !is_object( $variable ) || !$variable instanceof SplObjectStorage ) return false;
9 /** @var $variable SplObjectStorage */
11 $count = $variable->count();
12 if ( $count === 0 ) return false;
15 while ( $variable->valid() ) {
16 $current = $variable->current();
17 $this->value[] = kintParser::factory( $current );
21 $this->type = 'Storage contents';