| @@ 194-198 (lines=5) @@ | ||
| 191 | { |
|
| 192 | $query = ['address' => $this->address]; |
|
| 193 | ||
| 194 | if ($this->hasComponents()) { |
|
| 195 | $query['components'] = implode('|', array_map(function ($type, $value) { |
|
| 196 | return $type.':'.$value; |
|
| 197 | }, array_keys($this->components), $this->components)); |
|
| 198 | } |
|
| 199 | ||
| 200 | if ($this->hasBound()) { |
|
| 201 | $query['bound'] = implode('|', [ |
|
| @@ 184-188 (lines=5) @@ | ||
| 181 | $query['types'] = implode('|', $this->types); |
|
| 182 | } |
|
| 183 | ||
| 184 | if ($this->hasComponents()) { |
|
| 185 | $query['components'] = implode('|', array_map(function ($key, $value) { |
|
| 186 | return $key.':'.$value; |
|
| 187 | }, array_keys($this->components), array_values($this->components))); |
|
| 188 | } |
|
| 189 | ||
| 190 | return $query; |
|
| 191 | } |
|