|
| 1 | +<?php |
| 2 | +declare(strict_types=1); |
| 3 | +namespace Basecom\SpeculationRulesToolbox\Api\Data; |
| 4 | + |
| 5 | +// Disable PHPCS, as forced short descriptions on getters are redundant |
| 6 | +// phpcs:disable |
| 7 | +interface ConfigInterface |
| 8 | +{ |
| 9 | + /** |
| 10 | + * @return bool |
| 11 | + */ |
| 12 | + public function isSpeculationRulesEnabled(): bool; |
| 13 | + |
| 14 | + /** |
| 15 | + * @return string |
| 16 | + */ |
| 17 | + public function getSpeculationRulesBannedTerms(): string; |
| 18 | + |
| 19 | + /** |
| 20 | + * @return bool |
| 21 | + */ |
| 22 | + public function isSpeculationRulesModerateEnabled(): bool; |
| 23 | + |
| 24 | + /** |
| 25 | + * @return string |
| 26 | + */ |
| 27 | + public function getSpeculationRulesPreloadType(): string; |
| 28 | + |
| 29 | + /** |
| 30 | + * @return bool |
| 31 | + */ |
| 32 | + public function isAllPagesCustomLinksEnabled(): bool; |
| 33 | + |
| 34 | + /** |
| 35 | + * @return string |
| 36 | + */ |
| 37 | + public function getAllPagesPreloadTypeCustom(): string; |
| 38 | + |
| 39 | + /** |
| 40 | + * @return array |
| 41 | + */ |
| 42 | + public function getAllPagesCustomLinks(): array; |
| 43 | + |
| 44 | + /** |
| 45 | + * @return bool |
| 46 | + */ |
| 47 | + public function isAllPagesCustomScriptEnabled(): bool; |
| 48 | + |
| 49 | + /** |
| 50 | + * @return string |
| 51 | + */ |
| 52 | + public function getAllPagesCustomScript(): string; |
| 53 | + |
| 54 | + /** |
| 55 | + * @return bool |
| 56 | + */ |
| 57 | + public function isHomepageCustomLinksEnabled(): bool; |
| 58 | + |
| 59 | + /** |
| 60 | + * @return string |
| 61 | + */ |
| 62 | + public function getHomepagePreloadTypeCustom(): string; |
| 63 | + |
| 64 | + /** |
| 65 | + * @return array |
| 66 | + */ |
| 67 | + public function getHomepageCustomLinks(): array; |
| 68 | + |
| 69 | + /** |
| 70 | + * @return bool |
| 71 | + */ |
| 72 | + public function isHomepageDynamicTargetsEnabled(): bool; |
| 73 | + |
| 74 | + /** |
| 75 | + * @return string |
| 76 | + */ |
| 77 | + public function getHomepagePreloadTypeDynamic(): string; |
| 78 | + |
| 79 | + /** |
| 80 | + * @return string |
| 81 | + */ |
| 82 | + public function getHomePageCssSelector(): string; |
| 83 | + |
| 84 | + /** |
| 85 | + * @return array |
| 86 | + */ |
| 87 | + public function getHomepageConcurrentPreloads(): array; |
| 88 | + |
| 89 | + /** |
| 90 | + * @return bool |
| 91 | + */ |
| 92 | + public function isPlpCustomLinksEnabled(): bool; |
| 93 | + |
| 94 | + /** |
| 95 | + * @return string |
| 96 | + */ |
| 97 | + public function getPlpPreloadTypeCustom(): string; |
| 98 | + |
| 99 | + /** |
| 100 | + * @return array |
| 101 | + */ |
| 102 | + public function getPlpCustomLinks(): array; |
| 103 | + |
| 104 | + /** |
| 105 | + * @return bool |
| 106 | + */ |
| 107 | + public function isPlpDynamicTargetsEnabled(): bool; |
| 108 | + |
| 109 | + /** |
| 110 | + * @return string |
| 111 | + */ |
| 112 | + public function getPlpPreloadTypeDynamic(): string; |
| 113 | + |
| 114 | + /** |
| 115 | + * @return string |
| 116 | + */ |
| 117 | + public function getPlpCssSelector(): string; |
| 118 | + |
| 119 | + /** |
| 120 | + * @return array |
| 121 | + */ |
| 122 | + public function getPlpConcurrentPreloads(): array; |
| 123 | + |
| 124 | + /** |
| 125 | + * @return bool |
| 126 | + */ |
| 127 | + public function isPdpCustomLinksEnabled(): bool; |
| 128 | + |
| 129 | + /** |
| 130 | + * @return string |
| 131 | + */ |
| 132 | + public function getPdpPreloadTypeCustom(): string; |
| 133 | + |
| 134 | + /** |
| 135 | + * @return array |
| 136 | + */ |
| 137 | + public function getPdpCustomLinks(): array; |
| 138 | + |
| 139 | + /** |
| 140 | + * @return bool |
| 141 | + */ |
| 142 | + public function isPdpDynamicTargetsEnabled(): bool; |
| 143 | + |
| 144 | + /** |
| 145 | + * @return string |
| 146 | + */ |
| 147 | + public function getPdpPreloadTypeDynamic(): string; |
| 148 | + |
| 149 | + /** |
| 150 | + * @return string |
| 151 | + */ |
| 152 | + public function getPdpCssSelector(): string; |
| 153 | + |
| 154 | + /** |
| 155 | + * @return array |
| 156 | + */ |
| 157 | + public function getPdpConcurrentPreloads(): array; |
| 158 | + |
| 159 | + /** |
| 160 | + * @return bool |
| 161 | + */ |
| 162 | + public function isDynamicIntersectionsEnabled(): bool; |
| 163 | + /** |
| 164 | + * @return string |
| 165 | + */ |
| 166 | + public function getDynamicIntersectionsPreloadType(): string; |
| 167 | + |
| 168 | + /** |
| 169 | + * @return int[] |
| 170 | + */ |
| 171 | + public function getDynamicIntersectionsConcurrentPreloads(): array; |
| 172 | + |
| 173 | + /** |
| 174 | + * @return int |
| 175 | + */ |
| 176 | + public function getDynamicIntersectionsObserverDelay(): int; |
| 177 | + |
| 178 | + /** |
| 179 | + * @return float |
| 180 | + */ |
| 181 | + public function getDynamicIntersectionsObserverThreshold(): float; |
| 182 | + |
| 183 | + /** |
| 184 | + * @return string |
| 185 | + */ |
| 186 | + public function getDynamicIntersectionsApplyToPages(): string; |
| 187 | +} |
| 188 | +// phpcs:enable |
0 commit comments