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 | * Provides an interface for the visitors online service. |
| 9 | */ |
| 10 | interface VisitorsOnlineInterface { |
| 11 | |
| 12 | /** |
| 13 | * Thirty minutes in seconds. |
| 14 | */ |
| 15 | const MINUTE_30 = 1800; |
| 16 | |
| 17 | /** |
| 18 | * Twenty-four hours in seconds. |
| 19 | */ |
| 20 | const HOUR_24 = 86400; |
| 21 | |
| 22 | /** |
| 23 | * Seven days in seconds. |
| 24 | */ |
| 25 | const DAY_7 = 604800; |
| 26 | |
| 27 | /** |
| 28 | * Gets the current visitors online. |
| 29 | * |
| 30 | * @return int |
| 31 | * The current visitors online. |
| 32 | */ |
| 33 | public function getLast30Minutes(); |
| 34 | |
| 35 | /** |
| 36 | * Gets the current visitors online. |
| 37 | * |
| 38 | * @return int |
| 39 | * The current visitors online. |
| 40 | */ |
| 41 | public function getLast24Hours(); |
| 42 | |
| 43 | /** |
| 44 | * Gets the current visitors online. |
| 45 | * |
| 46 | * @return int |
| 47 | * The current visitors online. |
| 48 | */ |
| 49 | public function getYesterday30Minutes(); |
| 50 | |
| 51 | /** |
| 52 | * Gets the current visitors online. |
| 53 | * |
| 54 | * @return int |
| 55 | * The current visitors online. |
| 56 | */ |
| 57 | public function getYesterday24Hours(); |
| 58 | |
| 59 | /** |
| 60 | * Gets the current visitors online. |
| 61 | * |
| 62 | * @return int |
| 63 | * The current visitors online. |
| 64 | */ |
| 65 | public function getLastWeek30Minutes(); |
| 66 | |
| 67 | /** |
| 68 | * Gets the current visitors online. |
| 69 | * |
| 70 | * @return int |
| 71 | * The current visitors online. |
| 72 | */ |
| 73 | public function getLastWeek24Hours(); |
| 74 | |
| 75 | } |