Mark V
1: <?php
2: namespace MOC\V\Component\Document\Vendor\UniversalXml\Source;
3:
4: /**
5: * Class NodeType
6: *
7: * @package MOC\V\Component\Document\Vendor\UniversalXml\Source
8: */
9: abstract class NodeType
10: {
11:
12: const TYPE_STRUCTURE = 1;
13: const TYPE_CONTENT = 2;
14: const TYPE_CDATA = 3;
15: const TYPE_COMMENT = 4;
16:
17: /** @var int $Type */
18: private $Type = self::TYPE_CONTENT;
19:
20: /**
21: * @return int
22: */
23: public function getType()
24: {
25:
26: return $this->Type;
27: }
28:
29: /**
30: * @param int $Value
31: *
32: * @return Node
33: */
34: public function setType($Value)
35: {
36:
37: $this->Type = $Value;
38:
39: return $this;
40: }
41: }
42: