KXStudio Website https://kx.studio/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1008B

  1. <?php
  2. /**
  3. * Horde YAML package
  4. *
  5. * This package is heavily inspired by the Spyc PHP YAML
  6. * implementation (http://spyc.sourceforge.net/), and portions are
  7. * copyright 2005-2006 Chris Wanstrath.
  8. *
  9. * @author Chris Wanstrath (chris@ozmm.org)
  10. * @author Chuck Hagenbuch (chuck@horde.org)
  11. * @author Mike Naberezny (mike@maintainable.com)
  12. * @license http://opensource.org/licenses/bsd-license.php BSD
  13. * @category Horde
  14. * @package Horde_Yaml
  15. */
  16. /**
  17. * A node, used for parsing YAML.
  18. *
  19. * @category Horde
  20. * @package Horde_Yaml
  21. */
  22. class Horde_Yaml_Node
  23. {
  24. /**
  25. * @var string
  26. */
  27. public $parent;
  28. /**
  29. */
  30. public $id;
  31. /**
  32. * @var mixed
  33. */
  34. public $data;
  35. /**
  36. * @var integer
  37. */
  38. public $indent;
  39. /**
  40. * @var bool
  41. */
  42. public $children = false;
  43. /**
  44. * The constructor assigns the node a unique ID.
  45. * @return void
  46. */
  47. public function __construct($nodeId)
  48. {
  49. $this->id = $nodeId;
  50. }
  51. }