1 | <?php |
||
16 | class PrepareUrl |
||
17 | { |
||
18 | /** |
||
19 | * @var array |
||
20 | */ |
||
21 | private $payloadParameters; |
||
22 | |||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | private $cacheBuster = ''; |
||
27 | |||
28 | /** |
||
29 | * Build URL which is sent to Google Analytics |
||
30 | * |
||
31 | * @internal |
||
32 | * @param string $url |
||
33 | * @param SingleParameter[] $singleParameters |
||
34 | * @param CompoundParameterCollection[] $compoundParameters |
||
35 | * @return string |
||
36 | */ |
||
37 | public function build($url, array $singleParameters, array $compoundParameters) |
||
51 | |||
52 | /** |
||
53 | * @internal |
||
54 | * @return array |
||
55 | */ |
||
56 | public function getPayloadParameters() |
||
60 | |||
61 | /** |
||
62 | * Prepares all the Single Parameters to be sent to GA. |
||
63 | * |
||
64 | * @param SingleParameter[] $singleParameters |
||
65 | * @return array |
||
66 | */ |
||
67 | private function getSingleParametersPayload(array $singleParameters) |
||
83 | |||
84 | /** |
||
85 | * Prepares compound parameters inside collections to be sent to GA. |
||
86 | * |
||
87 | * @param CompoundParameterCollection[] $compoundParameters |
||
88 | * @return array |
||
89 | */ |
||
90 | private function getCompoundParametersPayload(array $compoundParameters) |
||
101 | } |
||
102 |