@@ 32-39 (lines=8) @@ | ||
29 | */ |
|
30 | public $internalNodesEvaluated; |
|
31 | ||
32 | public static function forLeafNode(): Analytics |
|
33 | { |
|
34 | $result = new Analytics(); |
|
35 | $result->nodesEvaluated = 1; |
|
36 | $result->leafNodesEvaluated = 1; |
|
37 | $result->internalNodesEvaluated = 0; |
|
38 | return $result; |
|
39 | } |
|
40 | ||
41 | public static function forInternalNode(): Analytics |
|
42 | { |
|
@@ 41-48 (lines=8) @@ | ||
38 | return $result; |
|
39 | } |
|
40 | ||
41 | public static function forInternalNode(): Analytics |
|
42 | { |
|
43 | $result = new Analytics(); |
|
44 | $result->nodesEvaluated = 1; |
|
45 | $result->leafNodesEvaluated = 0; |
|
46 | $result->internalNodesEvaluated = 1; |
|
47 | return $result; |
|
48 | } |
|
49 | ||
50 | public function add(Analytics $that): void |
|
51 | { |