-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Expand file tree
/
Copy pathRequests.php
More file actions
46 lines (37 loc) · 983 Bytes
/
Requests.php
File metadata and controls
46 lines (37 loc) · 983 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
/**
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/
declare(strict_types=1);
namespace Piwik\Plugins\BotTracking\Columns\Metrics;
use Piwik\Columns\Dimension;
use Piwik\Metrics\Formatter;
use Piwik\Piwik;
use Piwik\Plugin\AggregatedMetric;
use Piwik\Plugins\BotTracking\Metrics;
class Requests extends AggregatedMetric
{
public function getName()
{
return Metrics::COLUMN_REQUESTS;
}
public function getTranslatedName()
{
return Piwik::translate('BotTracking_ColumnRequests');
}
public function getDocumentation()
{
return Piwik::translate('BotTracking_ColumnRequestsDocumentation');
}
public function format($value, Formatter $formatter)
{
return $formatter->getPrettyNumber($value);
}
public function getSemanticType(): ?string
{
return Dimension::TYPE_NUMBER;
}
}