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://www.horde.org/licenses/bsd BSD
13: * @category Horde
14: * @package Yaml
15: */
16:
17: /**
18: * A node, used for parsing YAML.
19: *
20: * @category Horde
21: * @package Yaml
22: */
23: class Horde_Yaml_Node
24: {
25: /**
26: * @var string
27: */
28: public $parent;
29:
30: /**
31: */
32: public $id;
33:
34: /**
35: * @var mixed
36: */
37: public $data;
38:
39: /**
40: * @var integer
41: */
42: public $indent;
43:
44: /**
45: * @var bool
46: */
47: public $children = false;
48:
49: /**
50: * The constructor assigns the node a unique ID.
51: * @return void
52: */
53: public function __construct($nodeId)
54: {
55: $this->id = $nodeId;
56: }
57:
58: }
59: