Total Complexity | 3 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
20 | class WebperfVariable extends ManifestVariable |
||
21 | { |
||
22 | // Public Methods |
||
23 | // ========================================================================= |
||
24 | |||
25 | /** |
||
26 | * Whether to include the beacon or not |
||
27 | * |
||
28 | * @param bool $includeBeacon |
||
29 | */ |
||
30 | public function includeBeacon(bool $includeBeacon) |
||
31 | { |
||
32 | Webperf::$settings->includeBeacon = $includeBeacon; |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * Change the type of render; either `html` or `amp-html` are valid for $renderType |
||
37 | * |
||
38 | * @param string $renderType |
||
39 | */ |
||
40 | public function renderType(string $renderType) |
||
43 | } |
||
44 | |||
45 | /** |
||
46 | * @param int $siteId |
||
47 | * @param string $column |
||
48 | * |
||
49 | * @return int|string |
||
50 | */ |
||
51 | public function totalSamples(int $siteId, string $column) |
||
57 |