Total Complexity | 8 |
Total Lines | 52 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | trait Indexable |
||
16 | { |
||
17 | /** |
||
18 | * Placeholder for the index. |
||
19 | */ |
||
20 | private $indexPlaceholder = ':i:'; |
||
21 | |||
22 | /** |
||
23 | * Minimum value index can take in GA. |
||
24 | * |
||
25 | * @return int |
||
26 | */ |
||
27 | protected function minIndex() |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * Maximum value index can take in GA. |
||
34 | * |
||
35 | * @return int |
||
36 | */ |
||
37 | protected function maxIndex() |
||
40 | } |
||
41 | |||
42 | /** |
||
43 | * Replaces a placeholder for the index passed. |
||
44 | * |
||
45 | * @param string $string |
||
46 | * @param int $index |
||
47 | * @return string |
||
48 | * @throws \TheIconic\Tracking\GoogleAnalytics\Exception\InvalidIndexException |
||
49 | * @throws \TheIconic\Tracking\GoogleAnalytics\Exception\InvalidNameException |
||
50 | */ |
||
51 | protected function addIndex($string, $index) |
||
69 |