@@ -27,7 +27,6 @@ discard block |
||
| 27 | 27 | /** |
| 28 | 28 | * |
| 29 | 29 | * |
| 30 | - * @param string $value |
|
| 31 | 30 | * |
| 32 | 31 | * @return boolean |
| 33 | 32 | */ |
@@ -37,8 +36,8 @@ discard block |
||
| 37 | 36 | } |
| 38 | 37 | |
| 39 | 38 | /** |
| 40 | - * @param string $value |
|
| 41 | - * @return mixed |
|
| 39 | + * @param string $key |
|
| 40 | + * @return string |
|
| 42 | 41 | */ |
| 43 | 42 | public function get($key) |
| 44 | 43 | { |
@@ -49,6 +48,10 @@ discard block |
||
| 49 | 48 | return $this->values[$key]; |
| 50 | 49 | } |
| 51 | 50 | |
| 51 | + /** |
|
| 52 | + * @param string $key |
|
| 53 | + * @param package\MatcherClass $value |
|
| 54 | + */ |
|
| 52 | 55 | public function set($key, $value) |
| 53 | 56 | { |
| 54 | 57 | $this->values[$key] = $value; |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | public function get($key) |
| 44 | 44 | { |
| 45 | 45 | if (!$this->containsKey($key)) { |
| 46 | - throw new OutOfBoundsException('No element at position ' . $key); |
|
| 46 | + throw new OutOfBoundsException('No element at position '.$key); |
|
| 47 | 47 | } |
| 48 | 48 | |
| 49 | 49 | return $this->values[$key]; |