Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 6 |
|
0.00% |
0 / 6 |
CRAP | |
0.00% |
0 / 1 |
CargoTreeFormatNode | |
0.00% |
0 / 6 |
|
0.00% |
0 / 6 |
42 | |
0.00% |
0 / 1 |
getParent | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setParent | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getChildren | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
addChild | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getValues | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setValues | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | /** |
4 | * Class to print query results in a "tree" display, using a field that |
5 | * defines a "parent" relationship between rows. |
6 | * |
7 | * @author Yaron Koren |
8 | * @ingroup Cargo |
9 | */ |
10 | |
11 | class CargoTreeFormatNode { |
12 | |
13 | private $mParent; |
14 | private $mChildren = []; |
15 | private $mValues = []; |
16 | |
17 | public function getParent() { |
18 | return $this->mParent; |
19 | } |
20 | |
21 | public function setParent( $parent ) { |
22 | $this->mParent = $parent; |
23 | } |
24 | |
25 | public function getChildren() { |
26 | return $this->mChildren; |
27 | } |
28 | |
29 | public function addChild( $child ) { |
30 | $this->mChildren[] = $child; |
31 | } |
32 | |
33 | public function getValues() { |
34 | return $this->mValues; |
35 | } |
36 | |
37 | public function setValues( $values ) { |
38 | $this->mValues = $values; |
39 | } |
40 | } |