Total Complexity | 4 |
Total Lines | 44 |
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 $include |
||
29 | */ |
||
30 | public function includeBeacon(bool $include) |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * Whether to include the Craft beacon or not |
||
37 | * |
||
38 | * @param bool $include |
||
39 | */ |
||
40 | public function includeCraftBeacon(bool $include) |
||
41 | { |
||
42 | Webperf::$settings->includeCraftProfiling = $include; |
||
43 | } |
||
44 | |||
45 | /** |
||
46 | * Change the type of render; either `html` or `amp-html` are valid for $renderType |
||
47 | * |
||
48 | * @param string $renderType |
||
49 | */ |
||
50 | public function renderType(string $renderType) |
||
53 | } |
||
54 | |||
55 | /** |
||
56 | * @param int $siteId |
||
57 | * @param string $column |
||
58 | * |
||
59 | * @return int|string |
||
60 | */ |
||
61 | public function totalSamples(int $siteId, string $column) |
||
67 |