@@ -122,7 +122,7 @@ public static function getDeviceHash(): string
122122 /**
123123 * Retrieve the latest stored snapshot for a user/session (public).
124124 *
125- * @param int|null $user_id Optional user scope.
125+ * @param int|null $user_id Optional user scope.
126126 * @param string|null $session_id Optional session scope.
127127 * @return array<string, mixed>|null Snapshot payload when available.
128128 */
@@ -134,7 +134,7 @@ public static function get_snapshot(?int $user_id = null, ?string $session_id =
134134 /**
135135 * Internal engine fetching snapshot from runtime cache/session/cache/DB.
136136 *
137- * @param int|null $user_id Optional user scope.
137+ * @param int|null $user_id Optional user scope.
138138 * @param string|null $session_id Optional session scope.
139139 * @return array<string, mixed>|null Snapshot payload when available.
140140 */
@@ -185,9 +185,9 @@ private static function fetch_snapshot(?int $user_id, ?string $session_id): ?arr
185185 /**
186186 * Generic dot-path accessor into snapshot structure.
187187 *
188- * @param string $path Dot-path into snapshot array.
189- * @param mixed $default Default value when missing.
190- * @param int|null $user_id Optional user scope.
188+ * @param string $path Dot-path into snapshot array.
189+ * @param mixed $default Default value when missing.
190+ * @param int|null $user_id Optional user scope.
191191 * @param string|null $session_id Optional session scope.
192192 * @return mixed Resolved value or default.
193193 */
@@ -217,7 +217,7 @@ private static function get_value_from_snapshot(
217217 /**
218218 * Flushes the cache for a given user, forcing the next getter call to fetch fresh data.
219219 *
220- * @param int|null $user_id Optional user scope.
220+ * @param int|null $user_id Optional user scope.
221221 * @param string|null $session_id Optional session scope.
222222 */
223223 public static function flush_cache (?int $ user_id = null , ?string $ session_id = null ): void
@@ -239,7 +239,7 @@ public static function flush_cache(?int $user_id = null, ?string $session_id = n
239239 /**
240240 * Retrieves the entire raw snapshot for debugging or full-data use cases.
241241 *
242- * @param int|null $user_id Optional user scope.
242+ * @param int|null $user_id Optional user scope.
243243 * @param string|null $session_id Optional session scope.
244244 * @return array<string, mixed>|null Snapshot payload when available.
245245 */
@@ -258,7 +258,7 @@ public static function get_full_snapshot(?int $user_id = null, ?string $session_
258258 * Get the user's stable, anonymous browser fingerprint ID from the snapshot.
259259 * This is the primary key for tracking anonymous users.
260260 *
261- * @param int|null $user_id Optional user scope.
261+ * @param int|null $user_id Optional user scope.
262262 * @param string|null $session_id Optional session scope.
263263 */
264264 public static function get_visitor_id (?int $ user_id = null , ?string $ session_id = null ): string
@@ -276,7 +276,7 @@ public static function get_visitor_id(?int $user_id = null, ?string $session_id
276276 /**
277277 * Retrieve effective network type from the latest snapshot.
278278 *
279- * @param int|null $user_id Optional user scope.
279+ * @param int|null $user_id Optional user scope.
280280 * @param string|null $session_id Optional session scope.
281281 */
282282 public static function get_network_type (?int $ user_id = null , ?string $ session_id = null ): string
@@ -292,7 +292,7 @@ public static function get_network_type(?int $user_id = null, ?string $session_i
292292 /**
293293 * Determine whether data-saver mode is enabled in snapshot data.
294294 *
295- * @param int|null $user_id Optional user scope.
295+ * @param int|null $user_id Optional user scope.
296296 * @param string|null $session_id Optional session scope.
297297 */
298298 public static function is_data_saver_enabled (?int $ user_id = null , ?string $ session_id = null ): bool
@@ -308,7 +308,7 @@ public static function is_data_saver_enabled(?int $user_id = null, ?string $sess
308308 /**
309309 * Get normalized device type from snapshot.
310310 *
311- * @param int|null $user_id Optional user scope.
311+ * @param int|null $user_id Optional user scope.
312312 * @param string|null $session_id Optional session scope.
313313 */
314314 public static function get_user_device (?int $ user_id = null , ?string $ session_id = null ): string
@@ -324,7 +324,7 @@ public static function get_user_device(?int $user_id = null, ?string $session_id
324324 /**
325325 * Get GPU identifier from snapshot fingerprinting data.
326326 *
327- * @param int|null $user_id Optional user scope.
327+ * @param int|null $user_id Optional user scope.
328328 * @param string|null $session_id Optional session scope.
329329 */
330330 public static function get_user_gpu (?int $ user_id = null , ?string $ session_id = null ): string
@@ -340,7 +340,7 @@ public static function get_user_gpu(?int $user_id = null, ?string $session_id =
340340 /**
341341 * Get operating system label from snapshot.
342342 *
343- * @param int|null $user_id Optional user scope.
343+ * @param int|null $user_id Optional user scope.
344344 * @param string|null $session_id Optional session scope.
345345 */
346346 public static function get_os_name (?int $ user_id = null , ?string $ session_id = null ): string
@@ -356,7 +356,7 @@ public static function get_os_name(?int $user_id = null, ?string $session_id = n
356356 /**
357357 * Get browser name from snapshot.
358358 *
359- * @param int|null $user_id Optional user scope.
359+ * @param int|null $user_id Optional user scope.
360360 * @param string|null $session_id Optional session scope.
361361 */
362362 public static function get_browser_name (?int $ user_id = null , ?string $ session_id = null ): string
@@ -374,7 +374,7 @@ public static function get_browser_name(?int $user_id = null, ?string $session_i
374374 /**
375375 * Get server-observed user IP from snapshot.
376376 *
377- * @param int|null $user_id Optional user scope.
377+ * @param int|null $user_id Optional user scope.
378378 * @param string|null $session_id Optional session scope.
379379 */
380380 public static function get_user_ip (?int $ user_id = null , ?string $ session_id = null ): string
@@ -390,7 +390,7 @@ public static function get_user_ip(?int $user_id = null, ?string $session_id = n
390390 /**
391391 * Get user country from snapshot geolocation block.
392392 *
393- * @param int|null $user_id Optional user scope.
393+ * @param int|null $user_id Optional user scope.
394394 * @param string|null $session_id Optional session scope.
395395 */
396396 public static function get_user_country (?int $ user_id = null , ?string $ session_id = null ): string
@@ -406,7 +406,7 @@ public static function get_user_country(?int $user_id = null, ?string $session_i
406406 /**
407407 * Get user region/state from snapshot geolocation block.
408408 *
409- * @param int|null $user_id Optional user scope.
409+ * @param int|null $user_id Optional user scope.
410410 * @param string|null $session_id Optional session scope.
411411 */
412412 public static function get_user_state (?int $ user_id = null , ?string $ session_id = null ): string
@@ -422,7 +422,7 @@ public static function get_user_state(?int $user_id = null, ?string $session_id
422422 /**
423423 * Get user city from snapshot geolocation block.
424424 *
425- * @param int|null $user_id Optional user scope.
425+ * @param int|null $user_id Optional user scope.
426426 * @param string|null $session_id Optional session scope.
427427 */
428428 public static function get_user_city (?int $ user_id = null , ?string $ session_id = null ): string
@@ -438,7 +438,7 @@ public static function get_user_city(?int $user_id = null, ?string $session_id =
438438 /**
439439 * Get two-letter language code from snapshot context language.
440440 *
441- * @param int|null $user_id Optional user scope.
441+ * @param int|null $user_id Optional user scope.
442442 * @param string|null $session_id Optional session scope.
443443 */
444444 public static function get_user_language (?int $ user_id = null , ?string $ session_id = null ): string
@@ -458,7 +458,7 @@ public static function get_user_language(?int $user_id = null, ?string $session_
458458 /**
459459 * Get UTC timestamp of the stored snapshot.
460460 *
461- * @param int|null $user_id Optional user scope.
461+ * @param int|null $user_id Optional user scope.
462462 * @param string|null $session_id Optional session scope.
463463 */
464464 public static function get_snapshot_timestamp (?int $ user_id = null , ?string $ session_id = null ): string
@@ -474,7 +474,7 @@ public static function get_snapshot_timestamp(?int $user_id = null, ?string $ses
474474 /**
475475 * Determine if geolocation data flagged VPN/proxy usage.
476476 *
477- * @param int|null $user_id Optional user scope.
477+ * @param int|null $user_id Optional user scope.
478478 * @param string|null $session_id Optional session scope.
479479 */
480480 public static function is_on_vpn (?int $ user_id = null , ?string $ session_id = null ): bool
@@ -500,7 +500,7 @@ public static function get_current_user_session_id(): string
500500 /**
501501 * Get full geolocation payload from snapshot server block.
502502 *
503- * @param int|null $user_id Optional user scope.
503+ * @param int|null $user_id Optional user scope.
504504 * @param string|null $session_id Optional session scope.
505505 * @return array<string, mixed> Geolocation map.
506506 */
@@ -519,9 +519,9 @@ public static function get_geolocation(?int $user_id = null, ?string $session_id
519519 /**
520520 * Geolocation convenience accessor for city.
521521 *
522- * @param int|null $user_id Optional user scope.
522+ * @param int|null $user_id Optional user scope.
523523 * @param string|null $session_id Optional session scope.
524- * @param string $default Default when value is missing.
524+ * @param string $default Default when value is missing.
525525 */
526526 public static function get_city (
527527 ?int $ user_id = null ,
@@ -539,9 +539,9 @@ public static function get_city(
539539 /**
540540 * Geolocation convenience accessor for state.
541541 *
542- * @param int|null $user_id Optional user scope.
542+ * @param int|null $user_id Optional user scope.
543543 * @param string|null $session_id Optional session scope.
544- * @param string $default Default when value is missing.
544+ * @param string $default Default when value is missing.
545545 */
546546 public static function get_state (
547547 ?int $ user_id = null ,
@@ -559,9 +559,9 @@ public static function get_state(
559559 /**
560560 * Geolocation convenience accessor for postal code.
561561 *
562- * @param int|null $user_id Optional user scope.
562+ * @param int|null $user_id Optional user scope.
563563 * @param string|null $session_id Optional session scope.
564- * @param string $default Default when value is missing.
564+ * @param string $default Default when value is missing.
565565 */
566566 public static function get_postal_code (
567567 ?int $ user_id = null ,
@@ -579,9 +579,9 @@ public static function get_postal_code(
579579 /**
580580 * Geolocation convenience accessor for region.
581581 *
582- * @param int|null $user_id Optional user scope.
582+ * @param int|null $user_id Optional user scope.
583583 * @param string|null $session_id Optional session scope.
584- * @param string $default Default when value is missing.
584+ * @param string $default Default when value is missing.
585585 */
586586 public static function get_region (
587587 ?int $ user_id = null ,
@@ -599,9 +599,9 @@ public static function get_region(
599599 /**
600600 * Geolocation convenience accessor for country.
601601 *
602- * @param int|null $user_id Optional user scope.
602+ * @param int|null $user_id Optional user scope.
603603 * @param string|null $session_id Optional session scope.
604- * @param string $default Default when value is missing.
604+ * @param string $default Default when value is missing.
605605 */
606606 public static function get_country (
607607 ?int $ user_id = null ,
@@ -746,7 +746,7 @@ public static function get_current_visitor_ip(): string
746746 * Persist an arbitrary value in the session namespace.
747747 *
748748 * @param string $key Session key.
749- * @param mixed $value Value to persist.
749+ * @param mixed $value Value to persist.
750750 */
751751 public static function setSessionValue (string $ key , mixed $ value ): void
752752 {
@@ -758,7 +758,7 @@ public static function setSessionValue(string $key, mixed $value): void
758758 * Retrieve a value from the session namespace.
759759 *
760760 * @param string $key Session key.
761- * @param mixed $default Default return when missing.
761+ * @param mixed $default Default return when missing.
762762 * @return mixed Resolved session value.
763763 */
764764 public static function getSessionValue (string $ key , mixed $ default = null ): mixed
0 commit comments