1 | <?php |
||
4 | class NodeInfo |
||
5 | { |
||
6 | private $id; |
||
7 | private $parentId; |
||
8 | private $level; |
||
9 | private $left; |
||
10 | private $right; |
||
11 | |||
12 | 43 | public function __construct($id, $parentId, $level, $left, $right) |
|
20 | |||
21 | /** |
||
22 | * @return int|null |
||
23 | */ |
||
24 | 25 | public function getId() |
|
28 | |||
29 | /** |
||
30 | * @return int|null |
||
31 | */ |
||
32 | 28 | public function getParentId() |
|
36 | |||
37 | /** |
||
38 | * @return int|null |
||
39 | */ |
||
40 | 37 | public function getLevel() |
|
44 | |||
45 | /** |
||
46 | * @return int|null |
||
47 | */ |
||
48 | 43 | public function getLeft() |
|
52 | |||
53 | /** |
||
54 | * @return int|null |
||
55 | */ |
||
56 | 43 | public function getRight() |
|
60 | } |
||
61 |