File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
src/DocScan/Session/Create
tests/DocScan/Session/Create Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -169,14 +169,21 @@ public function withIdDocumentTextExtractionReclassificationRetries(int $reclass
169
169
return $ this ;
170
170
}
171
171
172
+ /**
173
+ * @deprecated from 4.2.0, @see withIdDocumentTextExtractionGenericAttempts
174
+ */
175
+ public function withIdDocumentTextExtractionGenericRetries (int $ genericRetries )
176
+ {
177
+ }
178
+
172
179
/**
173
180
* Allows configuring the number of 'Generic' attempts permitted for text extraction on an ID document
174
181
*
175
182
* The number of generic retries
176
183
* @param int $genericRetries
177
184
* @return $this
178
185
*/
179
- public function withIdDocumentTextExtractionGenericRetries (int $ genericRetries ): self
186
+ public function withIdDocumentTextExtractionGenericAttempts (int $ genericRetries ): self
180
187
{
181
188
$ this ->withIdDocumentTextExtractionCategoryRetries (Constants::GENERIC , $ genericRetries );
182
189
return $ this ;
Original file line number Diff line number Diff line change @@ -237,7 +237,7 @@ public function attemptsConfigurationShouldResetSameValueWithRepeatedCalls(): vo
237
237
* @covers ::build
238
238
* @covers ::withIdDocumentTextExtractionCategoryRetries
239
239
* @covers ::withIdDocumentTextExtractionReclassificationRetries
240
- * @covers ::withIdDocumentTextExtractionGenericRetries
240
+ * @covers ::withIdDocumentTextExtractionGenericAttempts
241
241
* @covers \Yoti\DocScan\Session\Create\SdkConfig::getAttemptsConfiguration
242
242
* @covers \Yoti\DocScan\Session\Create\SdkConfig::__construct
243
243
* @covers \Yoti\DocScan\Session\Create\AttemptsConfiguration::__construct
@@ -250,7 +250,7 @@ public function attemptsConfigurationShouldAllowMultipleCategories(): void
250
250
251
251
$ sdkConfig = (new SdkConfigBuilder ())
252
252
->withIdDocumentTextExtractionReclassificationRetries ($ numberOfReclassificationRetries )
253
- ->withIdDocumentTextExtractionGenericRetries ($ numberOfGenericRetries )
253
+ ->withIdDocumentTextExtractionGenericAttempts ($ numberOfGenericRetries )
254
254
->withIdDocumentTextExtractionCategoryRetries (self ::SOME_CATEGORY , self ::SOME_NUMBER_RETRIES )
255
255
->build ();
256
256
You can’t perform that action at this time.
0 commit comments