Cursor.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Component\VarDumper\Cloner;
  11. /**
  12. * Represents the current state of a dumper while dumping.
  13. *
  14. * @author Nicolas Grekas <p@tchwork.com>
  15. */
  16. class Cursor
  17. {
  18. public const HASH_INDEXED = Stub::ARRAY_INDEXED;
  19. public const HASH_ASSOC = Stub::ARRAY_ASSOC;
  20. public const HASH_OBJECT = Stub::TYPE_OBJECT;
  21. public const HASH_RESOURCE = Stub::TYPE_RESOURCE;
  22. public int $depth = 0;
  23. public int $refIndex = 0;
  24. public int $softRefTo = 0;
  25. public int $softRefCount = 0;
  26. public int $softRefHandle = 0;
  27. public int $hardRefTo = 0;
  28. public int $hardRefCount = 0;
  29. public int $hardRefHandle = 0;
  30. public int $hashType;
  31. public string|int|null $hashKey = null;
  32. public bool $hashKeyIsBinary;
  33. public int $hashIndex = 0;
  34. public int $hashLength = 0;
  35. public int $hashCut = 0;
  36. public bool $stop = false;
  37. public array $attr = [];
  38. public bool $skipChildren = false;
  39. }