1: <?php
2:
3: /**
4: * This file is part of the Nette Framework (https://nette.org)
5: * Copyright (c) 2004 David Grudl (http://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 string */
36: public $attrCode;
37:
38: /** @var int */
39: public $offset;
40:
41:
42: public function __construct($name)
43: {
44: $this->name = $name;
45: }
46:
47: }
48: