@@ -67,23 +67,26 @@ public function getReload(): ?bool
6767 /**
6868 * Set dictionary option.
6969 *
70- * The name of the dictionary to use
70+ * The name of the dictionary or dictionaries to use
7171 *
72- * @param string $dictionary
72+ * @param string|array $dictionary
7373 *
74- * @return self Provides fluent interface
74+ * @return SpellcheckInterface Provides fluent interface
7575 */
76- public function setDictionary (string $ dictionary ): SpellcheckInterface
76+ public function setDictionary ($ dictionary ): SpellcheckInterface
7777 {
78+ if (is_string ($ dictionary )) {
79+ $ dictionary = [$ dictionary ];
80+ }
7881 return $ this ->setOption ('dictionary ' , $ dictionary );
7982 }
8083
8184 /**
8285 * Get dictionary option.
8386 *
84- * @return string |null
87+ * @return array |null
8588 */
86- public function getDictionary (): ?string
89+ public function getDictionary (): ?array
8790 {
8891 return $ this ->getOption ('dictionary ' );
8992 }
@@ -95,7 +98,7 @@ public function getDictionary(): ?string
9598 *
9699 * @param int $count
97100 *
98- * @return self Provides fluent interface
101+ * @return SpellcheckInterface Provides fluent interface
99102 */
100103 public function setCount (int $ count ): SpellcheckInterface
101104 {
@@ -119,7 +122,7 @@ public function getCount(): ?int
119122 *
120123 * @param bool $onlyMorePopular
121124 *
122- * @return self Provides fluent interface
125+ * @return SpellcheckInterface Provides fluent interface
123126 */
124127 public function setOnlyMorePopular (bool $ onlyMorePopular ): SpellcheckInterface
125128 {
@@ -141,7 +144,7 @@ public function getOnlyMorePopular(): ?bool
141144 *
142145 * @param bool $extendedResults
143146 *
144- * @return self Provides fluent interface
147+ * @return SpellcheckInterface Provides fluent interface
145148 */
146149 public function setExtendedResults (bool $ extendedResults ): SpellcheckInterface
147150 {
@@ -163,7 +166,7 @@ public function getExtendedResults(): ?bool
163166 *
164167 * @param bool $collate
165168 *
166- * @return self Provides fluent interface
169+ * @return SpellcheckInterface Provides fluent interface
167170 */
168171 public function setCollate (bool $ collate ): SpellcheckInterface
169172 {
@@ -185,7 +188,7 @@ public function getCollate(): ?bool
185188 *
186189 * @param int $maxCollations
187190 *
188- * @return self Provides fluent interface
191+ * @return SpellcheckInterface Provides fluent interface
189192 */
190193 public function setMaxCollations (int $ maxCollations ): SpellcheckInterface
191194 {
@@ -207,7 +210,7 @@ public function getMaxCollations(): ?int
207210 *
208211 * @param int $maxCollationTries
209212 *
210- * @return self Provides fluent interface
213+ * @return SpellcheckInterface Provides fluent interface
211214 */
212215 public function setMaxCollationTries (int $ maxCollationTries ): SpellcheckInterface
213216 {
@@ -251,7 +254,7 @@ public function getMaxCollationEvaluations(): ?int
251254 *
252255 * @param bool $collateExtendedResults
253256 *
254- * @return self Provides fluent interface
257+ * @return SpellcheckInterface Provides fluent interface
255258 */
256259 public function setCollateExtendedResults (bool $ collateExtendedResults ): SpellcheckInterface
257260 {
@@ -273,7 +276,7 @@ public function getCollateExtendedResults(): ?bool
273276 *
274277 * @param float $accuracy
275278 *
276- * @return self Provides fluent interface
279+ * @return SpellcheckInterface Provides fluent interface
277280 */
278281 public function setAccuracy (float $ accuracy ): SpellcheckInterface
279282 {
@@ -296,7 +299,7 @@ public function getAccuracy(): ?float
296299 * @param string $param
297300 * @param mixed $value
298301 *
299- * @return self Provides fluent interface
302+ * @return SpellcheckInterface Provides fluent interface
300303 */
301304 public function setCollateParam (string $ param , $ value ): SpellcheckInterface
302305 {
0 commit comments