1 | <?php |
||
9 | class BaseStringBuilder implements BaseStringBuilderInterface |
||
10 | { |
||
11 | /** |
||
12 | * {@inheritDoc} |
||
13 | */ |
||
14 | 4 | public function build($httpMethod, $uri, array $parameters = []) |
|
30 | |||
31 | /** |
||
32 | * {@inheritDoc} |
||
33 | */ |
||
34 | 5 | public function buildMethodComponent($httpMethod) |
|
38 | |||
39 | /** |
||
40 | * {@inheritDoc} |
||
41 | */ |
||
42 | 7 | public function buildUriComponent($uri) |
|
53 | |||
54 | /** |
||
55 | * {@inheritDoc} |
||
56 | */ |
||
57 | 4 | public function buildParametersComponent(array $parameters) |
|
63 | |||
64 | /** |
||
65 | * Normalize the given request parameters. |
||
66 | * |
||
67 | * @param array $parameters |
||
68 | * @return array |
||
69 | */ |
||
70 | 6 | public function normalizeParameters(array $parameters) |
|
91 | |||
92 | /** |
||
93 | * Build query string from the given parameters. |
||
94 | * |
||
95 | * @param array $parameters |
||
96 | * @param array $initialQueryParameters |
||
97 | * @param string $previousKey |
||
98 | * @return string |
||
99 | */ |
||
100 | 6 | public function buildQueryString(array $parameters, array $initialQueryParameters = [], $previousKey = null) |
|
118 | |||
119 | /** |
||
120 | * Parse the given uri to the PSR URIInterface instance. |
||
121 | * |
||
122 | * @param \Psr\Http\Message\UriInterface|string $uri |
||
123 | * @return \Psr\Http\Message\UriInterface |
||
124 | * @throws \InvalidArgumentException |
||
125 | */ |
||
126 | 8 | public function parseToPsrUri($uri) |
|
136 | } |
||
137 |