@@ 88-90 (lines=3) @@ | ||
85 | */ |
|
86 | public function assemble(array $params = [], array $options = []) |
|
87 | { |
|
88 | if (!array_key_exists('key', $params) || !is_string($params['key'])) { |
|
89 | throw new UnexpectedValueException('Route params requires "key" parameter'); |
|
90 | } |
|
91 | if (!array_key_exists('transformers', $params) || !is_string($params['transformers'])) { |
|
92 | throw new UnexpectedValueException('Route params requires "transformers" parameter'); |
|
93 | } |
|
@@ 91-93 (lines=3) @@ | ||
88 | if (!array_key_exists('key', $params) || !is_string($params['key'])) { |
|
89 | throw new UnexpectedValueException('Route params requires "key" parameter'); |
|
90 | } |
|
91 | if (!array_key_exists('transformers', $params) || !is_string($params['transformers'])) { |
|
92 | throw new UnexpectedValueException('Route params requires "transformers" parameter'); |
|
93 | } |
|
94 | ||
95 | $path = sprintf( |
|
96 | '/%s/%s/f_key/%s', |