@@ -14,8 +14,8 @@ |
||
| 14 | 14 | */ |
| 15 | 15 | |
| 16 | 16 | namespace Demo\UrbanDictionary; |
| 17 | -use Demo\UrbanDictionary\UrbanWords; |
|
| 18 | 17 | use Demo\UrbanDictionary\Dictionary; |
| 18 | +use Demo\UrbanDictionary\UrbanWords; |
|
| 19 | 19 | use Demo\UrbanDictionary\UserException; |
| 20 | 20 | |
| 21 | 21 | class DictionaryEngine implements Dictionary |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | * |
| 63 | 63 | * @param $description |
| 64 | 64 | * @param $sampleSentence |
| 65 | - * @return array |
|
| 65 | + * @return boolean |
|
| 66 | 66 | */ |
| 67 | 67 | public function add($description, $sampleSentence) |
| 68 | 68 | { |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | * associative array. If found, It deletes the word, description and sample sentence |
| 144 | 144 | * in the dictionary. If the word is not found, WordNotFoundException is thrown. |
| 145 | 145 | * |
| 146 | - * @return Array |
|
| 146 | + * @return boolean |
|
| 147 | 147 | * @throws UserException |
| 148 | 148 | */ |
| 149 | 149 | public function delete() |