| @@ 48-54 (lines=7) @@ | ||
| 45 | * @return mixed |
|
| 46 | * @throws RequestParameterException |
|
| 47 | */ |
|
| 48 | public function getParameter($name) |
|
| 49 | { |
|
| 50 | if (!$this->hasParameter($name)) { |
|
| 51 | throw new RequestParameterException(sprintf('Parameter %s not found')); |
|
| 52 | } |
|
| 53 | return $this->parameters[$name]; |
|
| 54 | } |
|
| 55 | ||
| 56 | /** |
|
| 57 | * @return Body |
|
| @@ 40-46 (lines=7) @@ | ||
| 37 | * @return mixed |
|
| 38 | * @throws RequestParameterException |
|
| 39 | */ |
|
| 40 | public function getParameter($name) |
|
| 41 | { |
|
| 42 | if (!$this->hasParameter($name)) { |
|
| 43 | throw new RequestParameterException(sprintf('Parameter %s not found')); |
|
| 44 | } |
|
| 45 | return $this->parameters[$name]; |
|
| 46 | } |
|
| 47 | ||
| 48 | /** |
|
| 49 | * @return RequestMethod |
|