/** * * {@inheritdoc} * */ public function enterHash(Cursor $cursor, $type, $class, $hasChild) { if (Cursor::HASH_INDEXED === $type || Cursor::HASH_ASSOC === $type) { $class = 0; } parent::enterHash($cursor, $type, $class, $hasChild); }
/** * {@inheritdoc} */ public function enterHash(Cursor $cursor, $type, $class, $hasChild) { parent::enterHash($cursor, $type, $class, false); if ($hasChild) { if ($cursor->refIndex) { $r = Cursor::HASH_OBJECT !== $type ? 1 - (Cursor::HASH_RESOURCE !== $type) : 2; $r .= $r && 0 < $cursor->softRefHandle ? $cursor->softRefHandle : $cursor->refIndex; $this->line .= sprintf('<samp id=%s-ref%s>', $this->dumpId, $r); } else { $this->line .= '<samp>'; } $this->dumpLine($cursor->depth); } }
/** * {@inheritdoc} */ protected function enterHash(Cursor $cursor, $prefix, $hasChild) { if ($hasChild) { $prefix .= '<span name=sf-dump-child>'; } return parent::enterHash($cursor, $prefix, $hasChild); }