Stub.php 885 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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 main properties of a PHP variable.
  13. *
  14. * @author Nicolas Grekas <p@tchwork.com>
  15. */
  16. class Stub
  17. {
  18. const TYPE_REF = 'ref';
  19. const TYPE_STRING = 'string';
  20. const TYPE_ARRAY = 'array';
  21. const TYPE_OBJECT = 'object';
  22. const TYPE_RESOURCE = 'resource';
  23. const STRING_BINARY = 'bin';
  24. const STRING_UTF8 = 'utf8';
  25. const ARRAY_ASSOC = 'assoc';
  26. const ARRAY_INDEXED = 'indexed';
  27. public $type = self::TYPE_REF;
  28. public $class = '';
  29. public $value;
  30. public $cut = 0;
  31. public $handle = 0;
  32. public $refCount = 0;
  33. public $position = 0;
  34. }