Symfony\Component\VarDumper\Dumper\HtmlDumper::enterHash PHP Method

enterHash() public method

public enterHash ( Symfony\Component\VarDumper\Cloner\Cursor $cursor, $type, $class, $hasChild )
$cursor Symfony\Component\VarDumper\Cloner\Cursor
    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);
        }
    }