1 | <?php |
||
4 | class NodeInfo |
||
5 | { |
||
6 | private $id; |
||
7 | private $parentId; |
||
8 | private $level; |
||
9 | private $left; |
||
10 | private $right; |
||
11 | private $scope; |
||
12 | |||
13 | 73 | public function __construct($id, $parentId, $level, $left, $right, $scope=null) |
|
22 | |||
23 | /** |
||
24 | * @return int|null |
||
25 | */ |
||
26 | 17 | public function getId() |
|
30 | |||
31 | /** |
||
32 | * @return int|null |
||
33 | */ |
||
34 | 46 | public function getParentId() |
|
38 | |||
39 | /** |
||
40 | * @return int|null |
||
41 | */ |
||
42 | 53 | public function getLevel() |
|
46 | |||
47 | /** |
||
48 | * @return int|null |
||
49 | */ |
||
50 | 68 | public function getLeft() |
|
54 | |||
55 | /** |
||
56 | * @return int|null |
||
57 | */ |
||
58 | 68 | public function getRight() |
|
62 | |||
63 | /** |
||
64 | * @return null|int |
||
65 | */ |
||
66 | 53 | public function getScope() |
|
70 | |||
71 | /** |
||
72 | * @return bool |
||
73 | */ |
||
74 | 17 | public function isRoot() |
|
82 | } |
||
83 |