Campaigns.php
3 years ago
City_Statistics.php
3 years ago
Country_Statistics.php
3 years ago
Current_Traffic_Finder.php
3 years ago
Interval.php
3 years ago
Minute_Interval.php
3 years ago
Range_Query.php
3 years ago
Referrers.php
3 years ago
Reset_Database.php
3 years ago
Resources.php
3 years ago
Ten_Second_Interval.php
3 years ago
View.php
3 years ago
Views.php
3 years ago
Visitors_Over_Time_Finder.php
3 years ago
Ten_Second_Interval.php
37 lines
| 1 | <?php |
| 2 | |
| 3 | namespace IAWP\Queries; |
| 4 | |
| 5 | class Ten_Second_Interval extends Interval |
| 6 | { |
| 7 | public function get_query_name(): string |
| 8 | { |
| 9 | return 'get_visitors_by_ten_second_interval'; |
| 10 | } |
| 11 | |
| 12 | public function get_date_interval(): \DateInterval |
| 13 | { |
| 14 | return new \DateInterval('PT10S'); |
| 15 | } |
| 16 | |
| 17 | public function short_label(): string |
| 18 | { |
| 19 | return __('sec'); |
| 20 | } |
| 21 | |
| 22 | public function long_label_singular(): string |
| 23 | { |
| 24 | return __('second ago'); |
| 25 | } |
| 26 | |
| 27 | public function long_label_plural(): string |
| 28 | { |
| 29 | return __('seconds ago'); |
| 30 | } |
| 31 | |
| 32 | public function interval_multiplier(): int |
| 33 | { |
| 34 | return 10; |
| 35 | } |
| 36 | } |
| 37 |