1 | <?php |
||
12 | class PrepareUrl |
||
13 | { |
||
14 | /** |
||
15 | * @var array |
||
16 | */ |
||
17 | private $payloadParameters; |
||
18 | |||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | private $cacheBuster = ''; |
||
23 | |||
24 | /** |
||
25 | * Build URL which is sent to Google Analytics |
||
26 | * |
||
27 | * @param string $url |
||
28 | * @param SingleParameter[] $singleParameters |
||
29 | * @param CompoundParameterCollection[] $compoundParameters |
||
30 | * @return string |
||
31 | */ |
||
32 | public function build($url, array $singleParameters, array $compoundParameters) |
||
46 | |||
47 | /** |
||
48 | * @return array |
||
49 | */ |
||
50 | public function getPayloadParameters() |
||
54 | |||
55 | /** |
||
56 | * Prepares all the Single Parameters to be sent to GA. |
||
57 | * |
||
58 | * @param SingleParameter[] $singleParameters |
||
59 | * @return array |
||
60 | */ |
||
61 | private function getSingleParametersPayload(array $singleParameters) |
||
77 | |||
78 | /** |
||
79 | * Prepares compound parameters inside collections to be sent to GA. |
||
80 | * |
||
81 | * @param CompoundParameterCollection[] $compoundParameters |
||
82 | * @return array |
||
83 | */ |
||
84 | private function getCompoundParametersPayload(array $compoundParameters) |
||
95 | } |