Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2
3namespace Drupal\visitors;
4
5/**
6 * Detects the device type.
7 *
8 * @package Drupal\visitors
9 */
10interface VisitorsDeviceInterface {
11
12  /**
13   * Sets the device fields.
14   *
15   * @param array $fields
16   *   The fields array.
17   * @param string $user_agent
18   *   The user agent string.
19   * @param array|null $server
20   *   The server array.
21   */
22  public function doDeviceFields(array &$fields, string $user_agent, ?array $server = NULL): void;
23
24  /**
25   * Gets the device type.
26   *
27   * @param string $class_name
28   *   The class name of the library.
29   *
30   * @return bool
31   *   The device type.
32   */
33  public function hasLibrary($class_name = 'DeviceDetector\ClientHints'): bool;
34
35}