| @@ -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 | 
| @@ -56,7 +56,7 @@ discard block | ||
| 56 | 56 | * @param string $word The array key to add | 
| 57 | 57 | * @param string $description The array description to add | 
| 58 | 58 | * @param string $sampleSentence The array sample sentence to add | 
| 59 | - * @return Array | |
| 59 | + * @return boolean | |
| 60 | 60 | */ | 
| 61 | 61 | public function add($word, $description, $sampleSentence) | 
| 62 | 62 |      { | 
| @@ -111,8 +111,8 @@ discard block | ||
| 111 | 111 | * @newSampleSentence with "sampleSentence". If the word is not, WordNotFoundException is thrown. | 
| 112 | 112 | * | 
| 113 | 113 | * @param string $word The array key to update | 
| 114 | - * @param string $description The array description to update | |
| 115 | - * @param string $sampleSentence The array sample sentence to update | |
| 114 | + * @param string $newDescription The array description to update | |
| 115 | + * @param string $newSampleSentence The array sample sentence to update | |
| 116 | 116 | * @return Array | 
| 117 | 117 | * @throws WordNotFoundException | 
| 118 | 118 | */ | 
| @@ -139,7 +139,7 @@ discard block | ||
| 139 | 139 | * in the dictionary. If the word is not found, WordNotFoundException is thrown. | 
| 140 | 140 | * | 
| 141 | 141 | * @param string $word The array key to delete | 
| 142 | - * @return Array | |
| 142 | + * @return boolean | |
| 143 | 143 | * @throws UserException | 
| 144 | 144 | */ | 
| 145 | 145 | public function delete($word) |