1: <?php
2:
3: /**
4: * This file is part of the Nette Framework (https://nette.org)
5: * Copyright (c) 2004 David Grudl (https://davidgrudl.com)
6: */
7:
8: namespace Nette\Latte;
9:
10: use Nette;
11:
12:
13: /**
14: * HTML element node.
15: *
16: * @author David Grudl
17: */
18: class HtmlNode extends Nette\Object
19: {
20: /** @var string */
21: public $name;
22:
23: /** @var bool */
24: public $isEmpty = FALSE;
25:
26: /** @var array */
27: public $attrs = array();
28:
29: /** @var array */
30: public $macroAttrs = array();
31:
32: /** @var bool */
33: public $closing = FALSE;
34:
35: /** @var HtmlNode */
36: public $parentNode;
37:
38: /** @var string */
39: public $attrCode;
40:
41: /** @var int */
42: public $offset;
43:
44:
45: public function __construct($name, self $parentNode = NULL)
46: {
47: $this->name = $name;
48: $this->parentNode = $parentNode;
49: }
50:
51: }
52: