]> scripts.mit.edu Git - autoinstallsdev/mediawiki.git/blob - vendor/wikimedia/remex-html/RemexHtml/Serializer/SerializerNode.php
MediaWiki 1.30.2
[autoinstallsdev/mediawiki.git] / vendor / wikimedia / remex-html / RemexHtml / Serializer / SerializerNode.php
1 <?php
2
3 namespace RemexHtml\Serializer;
4 use RemexHtml\PropGuard;
5
6 class SerializerNode {
7         public $id;
8         public $parentId;
9         public $namespace;
10         public $name;
11         public $attrs;
12         public $void;
13         public $children = [];
14
15         /**
16          * Arbitrary user data can be placed here.
17          */
18         public $snData;
19
20         public function __construct( $id, $parentId, $namespace, $name, $attrs, $void ) {
21                 $this->id = $id;
22                 $this->parentId = $parentId;
23                 $this->namespace = $namespace;
24                 $this->name = $name;
25                 $this->attrs = $attrs;
26                 $this->void = $void;
27         }
28
29         public function __set( $name, $value ) {
30                 PropGuard::set( $this, $name, $value );
31         }
32 }