
| Current Path : /var/www/html/rocksensor1/web/modules/contrib/visitors/src/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/rocksensor1/web/modules/contrib/visitors/src/VisitorsDeviceInterface.php |
<?php
namespace Drupal\visitors;
/**
* Detects the device type.
*
* @package Drupal\visitors
*/
interface VisitorsDeviceInterface {
/**
* Bulk updates missing device information.
*
* @param string $user_agent
* The user agent string.
*
* @return int
* The number of records updated.
*/
public function bulkUpdate(string $user_agent): int;
/**
* Gets the unique user agents.
*
* @return array
* The unique user agents.
*/
public function getUniqueUserAgents(): array;
/**
* Sets the device fields.
*
* @param array $fields
* The fields array.
* @param string $user_agent
* The user agent string.
* @param array|null $server
* The server array.
*/
public function doDeviceFields(array &$fields, string $user_agent, ?array $server = NULL): void;
}