1
1
<?php
2
2
3
3
namespace Neo4j \QueryAPI \Objects ;
4
+
4
5
/**
5
6
* @api
6
7
*/
@@ -37,7 +38,7 @@ public function __construct(
37
38
?string $ operatorType ,
38
39
ProfiledQueryPlanArguments $ arguments ,
39
40
?array $ children = [],
40
- array $ identifiers = [] // Default to an empty array
41
+ array $ identifiers = []
41
42
) {
42
43
$ this ->dbHits = $ dbHits ?? 0 ;
43
44
$ this ->records = $ records ?? 0 ;
@@ -51,50 +52,50 @@ public function __construct(
51
52
$ this ->children = $ children ?? [];
52
53
$ this ->identifiers = $ identifiers ;
53
54
}
54
-
55
+
55
56
public function getDbHits (): int
56
57
{
57
58
return $ this ->dbHits ;
58
59
}
59
-
60
+
60
61
public function getRecords (): int
61
62
{
62
63
return $ this ->records ;
63
64
}
64
65
65
-
66
+
66
67
public function hasPageCacheStats (): bool
67
68
{
68
69
return $ this ->hasPageCacheStats ;
69
70
}
70
-
71
+
71
72
public function getPageCacheHits (): int
72
73
{
73
74
return $ this ->pageCacheHits ;
74
75
}
75
-
76
+
76
77
77
78
public function getPageCacheMisses (): int
78
79
{
79
80
return $ this ->pageCacheMisses ;
80
81
}
81
-
82
+
82
83
public function getPageCacheHitRatio (): float
83
84
{
84
85
return $ this ->pageCacheHitRatio ;
85
86
}
86
-
87
+
87
88
88
89
public function getTime (): int
89
90
{
90
91
return $ this ->time ;
91
92
}
92
-
93
+
93
94
public function getOperatorType (): string
94
95
{
95
96
return $ this ->operatorType ;
96
97
}
97
-
98
+
98
99
public function getArguments (): ProfiledQueryPlanArguments
99
100
{
100
101
return $ this ->arguments ;
@@ -104,7 +105,7 @@ public function getArguments(): ProfiledQueryPlanArguments
104
105
* @return list<ProfiledQueryPlan|ProfiledQueryPlanArguments>
105
106
*/
106
107
107
-
108
+
108
109
public function getChildren (): array
109
110
{
110
111
return $ this ->children ;
@@ -118,7 +119,7 @@ public function addChild(ProfiledQueryPlan|ProfiledQueryPlanArguments $child): v
118
119
/**
119
120
* @return string[]
120
121
*/
121
-
122
+
122
123
public function getIdentifiers (): array
123
124
{
124
125
return $ this ->identifiers ;
@@ -127,13 +128,13 @@ public function getIdentifiers(): array
127
128
/**
128
129
* @param string[] $identifiers
129
130
*/
130
-
131
+
131
132
public function setIdentifiers (array $ identifiers ): void
132
133
{
133
134
$ this ->identifiers = $ identifiers ;
134
135
}
135
136
136
-
137
+
137
138
public function addIdentifier (string $ identifier ): void
138
139
{
139
140
$ this ->identifiers [] = $ identifier ;
0 commit comments