11<?php
22
33namespace Neo4j \QueryAPI \Objects ;
4+
45/**
56 * @api
67 */
@@ -37,7 +38,7 @@ public function __construct(
3738 ?string $ operatorType ,
3839 ProfiledQueryPlanArguments $ arguments ,
3940 ?array $ children = [],
40- array $ identifiers = [] // Default to an empty array
41+ array $ identifiers = []
4142 ) {
4243 $ this ->dbHits = $ dbHits ?? 0 ;
4344 $ this ->records = $ records ?? 0 ;
@@ -51,50 +52,50 @@ public function __construct(
5152 $ this ->children = $ children ?? [];
5253 $ this ->identifiers = $ identifiers ;
5354 }
54-
55+
5556 public function getDbHits (): int
5657 {
5758 return $ this ->dbHits ;
5859 }
59-
60+
6061 public function getRecords (): int
6162 {
6263 return $ this ->records ;
6364 }
6465
65-
66+
6667 public function hasPageCacheStats (): bool
6768 {
6869 return $ this ->hasPageCacheStats ;
6970 }
70-
71+
7172 public function getPageCacheHits (): int
7273 {
7374 return $ this ->pageCacheHits ;
7475 }
75-
76+
7677
7778 public function getPageCacheMisses (): int
7879 {
7980 return $ this ->pageCacheMisses ;
8081 }
81-
82+
8283 public function getPageCacheHitRatio (): float
8384 {
8485 return $ this ->pageCacheHitRatio ;
8586 }
86-
87+
8788
8889 public function getTime (): int
8990 {
9091 return $ this ->time ;
9192 }
92-
93+
9394 public function getOperatorType (): string
9495 {
9596 return $ this ->operatorType ;
9697 }
97-
98+
9899 public function getArguments (): ProfiledQueryPlanArguments
99100 {
100101 return $ this ->arguments ;
@@ -104,7 +105,7 @@ public function getArguments(): ProfiledQueryPlanArguments
104105 * @return list<ProfiledQueryPlan|ProfiledQueryPlanArguments>
105106 */
106107
107-
108+
108109 public function getChildren (): array
109110 {
110111 return $ this ->children ;
@@ -118,7 +119,7 @@ public function addChild(ProfiledQueryPlan|ProfiledQueryPlanArguments $child): v
118119 /**
119120 * @return string[]
120121 */
121-
122+
122123 public function getIdentifiers (): array
123124 {
124125 return $ this ->identifiers ;
@@ -127,13 +128,13 @@ public function getIdentifiers(): array
127128 /**
128129 * @param string[] $identifiers
129130 */
130-
131+
131132 public function setIdentifiers (array $ identifiers ): void
132133 {
133134 $ this ->identifiers = $ identifiers ;
134135 }
135136
136-
137+
137138 public function addIdentifier (string $ identifier ): void
138139 {
139140 $ this ->identifiers [] = $ identifier ;
0 commit comments