| @@ 87-96 (lines=10) @@ | ||
| 84 | ]; |
|
| 85 | } |
|
| 86 | ||
| 87 | private function getParameters(): array |
|
| 88 | { |
|
| 89 | $parameters = []; |
|
| 90 | ||
| 91 | foreach ($this->parameters as $parameter) { |
|
| 92 | $parameters[$parameter->getKey()] = $parameter->getValue(); |
|
| 93 | } |
|
| 94 | ||
| 95 | return $parameters; |
|
| 96 | } |
|
| 97 | } |
|
| 98 | ||
| @@ 40-49 (lines=10) @@ | ||
| 37 | return $url; |
|
| 38 | } |
|
| 39 | ||
| 40 | private function buildQueryString(): string |
|
| 41 | { |
|
| 42 | $parameters = []; |
|
| 43 | ||
| 44 | foreach ($this->parameters as $parameter) { |
|
| 45 | $parameters[$parameter->getKey()] = $parameter->getValue(); |
|
| 46 | } |
|
| 47 | ||
| 48 | return '?' . http_build_query($parameters); |
|
| 49 | } |
|
| 50 | } |
|
| 51 | ||