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 | |
3 | declare(strict_types=1); |
4 | |
5 | namespace Drupal\visitors; |
6 | |
7 | /** |
8 | * The interface for upgrading data. |
9 | */ |
10 | interface VisitorsUpgradeInterface { |
11 | |
12 | /** |
13 | * Get the total number of visitors. |
14 | * |
15 | * @return int |
16 | * The total number of visitors. |
17 | */ |
18 | public function getTotal(): int; |
19 | |
20 | /** |
21 | * Assign values to the visitors record. |
22 | * |
23 | * @param int $batch |
24 | * The batch size. |
25 | * |
26 | * @return array |
27 | * The visitors array. |
28 | */ |
29 | public function getVisitorsRows(int $batch = 50): array; |
30 | |
31 | /** |
32 | * Delete the visitors row. |
33 | * |
34 | * @param int $id |
35 | * The visitors id. |
36 | */ |
37 | public function deleteVisitorsRow($id); |
38 | |
39 | /** |
40 | * Assign values to the visit record. |
41 | * |
42 | * @param array $row |
43 | * The row array. |
44 | * |
45 | * @return array |
46 | * The visit array. |
47 | */ |
48 | public function doVisitRecord(array $row): array; |
49 | |
50 | /** |
51 | * Assign values to the log record. |
52 | * |
53 | * @param array $row |
54 | * The row array. |
55 | * |
56 | * @return array |
57 | * The log array. |
58 | */ |
59 | public function doLogRecord(array $row): array; |
60 | |
61 | } |